lqd2quantile {fdadensity}R Documentation

Function for converting log quantile densities to quantile functions

Description

Function for converting log quantile densities to quantile functions

Usage

lqd2quantile(
  lqd,
  lqdSup = seq(0, 1, length.out = length(lqd)),
  lb = 0,
  useSplines = TRUE
)

Arguments

lqd

log quantile density on lqdSup

lqdSup

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

lb

lower bound of support for Density domain - default is 0.

useSplines

fit spline to the lqd when doing the numerical integration (default: TRUE)

Value

quantile values on lqdSup

References

Functional Data Analysis for Density Functions by Transformation to a Hilbert space, Alexander Petersen and Hans-Georg Mueller, 2016

Examples

x <- seq(1,3,length.out =512)
y.lqd <- rep(log(2), times = 512)
y <- lqd2quantile(lqd = y.lqd, lb = 1) # should equate # seq(1, 3, length.out = 512)

[Package fdadensity version 0.1.2 Index]