RegulariseByAlpha: Function to regularise non-strictly positive densities by a...

Description Usage Arguments Value Examples

Description

Completely uniform distributions cannot be regularised by a level alpha.

Usage

1
RegulariseByAlpha(x, y, alpha = 0.01, deregularise = FALSE)

Arguments

x

support of the density

y

values of the density

alpha

scalar to regularise with (default = 0.01)

deregularise

logical to deregularise by alpha (instead of regularising) (default: FALSE )

Value

dens density values on dSup

Examples

1
2
3
4
 x = seq(0,1,length.out =122)
 y = seq(0,2,length.out =122)
 z = RegulariseByAlpha(x=x, y=y, alpha = 0.1)
 

functionaldata/tDENS documentation built on May 16, 2019, 3:38 p.m.