lqd2dens: Function for converting log quantile densities to densities

Description Usage Arguments Value References Examples

Description

Function for converting log quantile densities to densities

Usage

1
2
lqd2dens(lqd, lqSup = seq(0, 1, length.out = length(lqd)), dSup,
  useSplines = TRUE)

Arguments

lqd

log quantile density on lqSup

lqSup

support for LQ domain - must begin at 0 and end at 1

dSup

support for Density domain - max and min values are assumed to 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, 2015

Examples

1
2
3
4
x <- seq(0,2,length.out =512)
y <- rep(0.5,length.out =512)
yOnLQ <- dens2lqd(dens=y, dSup = x) # should equate # -log(1/2)
yOnDens <- lqd2dens(dSup=x, lqd = yOnLQ)   

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