lqd2quantile: Function for converting log quantile densities to quantile...

Description Usage Arguments Value References Examples

View source: R/lqd2quantile.R

Description

Function for converting log quantile densities to quantile functions

Usage

1
2
3
4
5
6
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

1
2
3
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)

fdadensity documentation built on Dec. 5, 2019, 9:07 a.m.