Learn R Programming

quantspec (version 1.2-4)

LagKernelWeight-class: Class for lag window generators

Description

LagKernelWeight is an S4 class that implements a weighting function by specification of a kernel function W and a scale parameter bw.

Arguments

Slots

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.

Details

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.

See Also

Examples for implementations of kernels W can be found at: kernels.