Learn R Programming

kernelPhil (version 0.2)

triangular.kernel: Triangular kernel

Description

Triangular kernel function - weights all points within bandwidth on a straight line such that where d=0 weight=1, and where d=bandwidth weight=0; all points beyond bandwidth are weighted 0.

Usage

triangular.kernel(d, bandwidth)

Value

A numeric vector of kernel weights.

Arguments

d

Numeric vector of distances.

bandwidth

Numeric bandwidth.