Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


quantspec (version 1.0-0)

getValues-KernelWeight: Get values from a weight object determined by a kernel function W and a bandwidth b.

Description

For an object of type KernelWeight and an optional integer N the weights $W_n$ are returned as a vector that has $W_n(2\pi(k-1)/n)$ at position k.

Usage

## S3 method for class 'KernelWeight':
getValues(object, N = length(object@env$values))

Arguments

object
KernelWeight of which to get the values
N
a numeric specifying the number of equaly spaced Fourier frequencies from $[0,2\pi)$ for which the weight will be computed; by default the number N specified on construction.

Value

  • Returns a vector of size N as described in the Details section.