lqd2dens {fdadensity} | R Documentation |
Function for converting log quantile densities to densities
Description
Function for converting log quantile densities to densities
Usage
lqd2dens(
lqd,
lqdSup = seq(0, 1, length.out = length(lqd)),
dSup,
useSplines = TRUE
)
Arguments
lqd |
log quantile density on lqdSup |
lqdSup |
support forlqd domain - must begin at 0 and end at 1 |
dSup |
support for Density domain - max and min values mark the boundary of the support. |
useSplines |
fit spline to the lqd when doing the numerical integration (default: TRUE) |
Value
dens density values on dSup
References
Functional Data Analysis for Density Functions by Transformation to a Hilbert space, Alexander Petersen and Hans-Georg Mueller, 2016
Examples
x <- seq(0,2,length.out =512)
y.lqd <- rep(log(2), times = 512)
y <- lqd2dens(dSup=x, lqd = y.lqd) # should equate # 1/2
[Package fdadensity version 0.1.2 Index]