Learn R Programming

slm (version 1.2.0)

triangle: Kernel triangle

Description

Kernel triangle

Usage

triangle(x)

Arguments

x

a vector of real numbers.

Value

This function computes the values of the triangle kernel at points x.

Examples

Run this code
# NOT RUN {
x = seq(-2,2,length=1000)
y = triangle(x)
plot(x,y)
# }

Run the code above in your browser using DataLab