mae_from_kernel_weights_and_centers: Compute "mean" absolute error for one time point from...

Description Usage Arguments Value

Description

Compute "mean" absolute error for one time point from prediction in the form of kernel weights and centers.

Usage

1
mae_from_kernel_weights_and_centers(kernel_weights_and_centers, obs)

Arguments

kernel_weights_and_centers

a named list with two components: weights is a vector of kernel weights, and centers is a vector of kernel centers

obs

is a numeric with length 1 containign the observed value for one time point

Value

abs(obs - prediction) where prediction is the weighted mean of the kernel centers.


reichlab/kcde documentation built on May 27, 2019, 4:53 a.m.