Learn R Programming

kernelPhil (version 0.1)

square.kernel: Square kernel

Description

Square kernel function - weights all points within bandwidth as 1, all others as 0.

Usage

square.kernel(d, bandwidth)

Arguments

d

Numeric vector of distances.

bandwidth

Numeric bandwidth.

Value

A numeric vector of kernel weights.