rectangular: Rectangular kernel

Description Usage Arguments Value Examples

Description

Vectorized evaluation of the rectangular kernel.

Usage

1
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

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

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

GerritEichner/kader documentation built on May 10, 2019, 1:14 p.m.