Learn R Programming

extremefit (version 1.0.2)

Triang.kernel: Triangular kernel function

Description

Triangular kernel function

Usage

Triang.kernel(x)

Arguments

x

a vector.

Details

Triangular Kernel $$ K(x) = ( 1 - abs(x) ) (abs(x) <= 1) $$ We recommend a critical value of 6.9 for this kernel.

Examples

Run this code
# NOT RUN {
plot(function(x) Triang.kernel(x), -2, 2,
main = " Triangular kernel")

# }

Run the code above in your browser using DataLab