rectangular {kader}R Documentation

Rectangular kernel

Description

Vectorized evaluation of the rectangular kernel.

Usage

rectangular(x, a = -0.5, b = 0.5)

Arguments

x

Numeric vector.

a

Numeric scalar: lower bound of kernel support; defaults to -0.5.

b

Numeric scalar: upper bound of kernel support; defaults to 0.5.

Value

A numeric vector of the rectangular kernel evaluated at the values in x.

Examples

kader:::rectangular(x = seq(-1, 1, by = 0.1))

curve(kader:::rectangular(x), from = -1, to = 1)



[Package kader version 0.0.8 Index]