dens2lqd: Function for converting densities to log quantile density...

Description Usage Arguments Value References See Also Examples

View source: R/dens2lqd.R

Description

Function for converting densities to log quantile density functions

Usage

1
dens2lqd(dens, dSup, N = length(dSup), lqdSup = NULL)

Arguments

dens

density values on dSup - must be strictly positive and integrate to 1

dSup

support (grid) for Density domain

N

desired number of points on a [0,1] grid for lqd function; default length(dSup)

lqdSup

support for lqd domain - must begin at 0 and end at 1; default [0,1] with N-equidistant support points

Value

lqd log quantile density on lqdSup

References

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

See Also

normaliseDensities

Examples

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

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