Learn R Programming

kernelPhil (version 0.1)

gaussian.square.kernel: Gaussian square kernel

Description

Gaussian square kernel function - weights all points within bandwidth by distance on a Gaussian curve with standard deviation of bandwidth, but all points beyond bandwidth at 0.

Usage

gaussian.square.kernel(d, bandwidth)

Arguments

d

Numeric vector of distances.

bandwidth

Numeric bandwidth.

Value

A numeric vector of kernel weights.