LagKernelWeight
is an S4 class that implements a weighting function by
specification of a kernel function W
and a scale parameter bw
.
W
a kernel function
bw
bandwidth
env
An environment to allow for slots which need to be accessable in a call-by-reference manner:
values
A vector storing the weights; see the Details section.
It extends the class Weight
and writes
$$W_N(x[k]) := W(x[k]/bw)$$
to values[k]
[nested inside env
] for k=1,...,length(x)
.
The points x
where \(W\) is evaluated may be set on construction or updated when
evoking the method getValues
.
Examples for implementations of kernels W
can be found at:
kernels
.