cubic: The cubic kernel

Description Usage Arguments Value

View source: R/kernels.r

Description

The cubic kernel

Usage

1
cubic(d, bw)

Arguments

d

vector of distances to convert to weights

bw

bandwidth of the kernel

Value

vector of kernel weights, given by 1 - (7 * (d / bw)^2 - 8.75 * (d / bw)^3 + 3.5 * (d / bw)^5 - 0.75 * (d / bw)^7 if d < bw; otherwise 0


wrbrooks/lagr documentation built on May 4, 2019, 11:59 a.m.