dens2lqd {fdadensity}R Documentation

Function for converting densities to log quantile density functions

Description

Function for converting densities to log quantile density functions

Usage

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

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)


[Package fdadensity version 0.1.2 Index]