new.lcd: Create an Object of Class "lcd"

Description Usage Arguments Value References See Also Examples

View source: R/cnmlcd.R

Description

Creates a new object of class "lcd".

Usage

1
new.lcd(alpha, theta = NULL, pi = NULL, lower, upper)

Arguments

alpha

the slope of the log-density before the first interior knot.

theta

vector of interior knots.

pi

vector of changes of slope.

lower

lower-boundary knot (L). This should be the smallest observed value.

upper

upper-boundary knot (U). This should be the largest observed value.

Value

An object of class lcd.

References

Liu, Y. and Wang, Y. (2018). A Fast Algorithm for Univariate Log-concave Density Estimation. Australia & New Zealand Journal of Statistics (To appear).

See Also

lcd, cnmlcd.

Examples

1
2
## Create an object of a class "lcd"
new.lcd(alpha = 1, theta = c(2,3), pi = c(1,2), lower = 0, upper = 4)

cnmlcd documentation built on May 1, 2019, 10:55 p.m.

Related to new.lcd in cnmlcd...