trapeze: Trapeze kernel

Description Usage Arguments Value Examples

View source: R/auxiliary-fun.R

Description

Trapeze kernel

Usage

1
trapeze(x, width = 0.8)

Arguments

x

a vector of real numbers.

width

a number between 0 and 1.

Value

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

Examples

1
2
3
x = seq(-2,2,length=1000)
y = trapeze(x, width=0.5)
plot(x,y)

slm documentation built on Aug. 31, 2020, 5:11 p.m.