triangular.kernel: Triangular kernel

Description Usage Arguments Value

View source: R/kernel.functions.r

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

1
triangular.kernel(d, bandwidth)

Arguments

d

Numeric vector of distances.

bandwidth

Numeric bandwidth.

Value

A numeric vector of kernel weights.


kernelPhil documentation built on Feb. 25, 2021, 5:08 p.m.