dens2qd | R Documentation |
Function for converting Densities to Quantile Densities
dens2qd(
dens,
dSup = seq(0, 1, length.out = length(dens)),
qdSup = seq(0, 1, length.out = length(dens)),
useSplines = TRUE
)
dens |
density on dSup |
dSup |
support for Density domain - max and min values mark the boundary of the support. |
qdSup |
support for quantile density domain - must begin at 0 and end at 1 |
useSplines |
fit spline to the qd when doing the numerical integration (default: TRUE) |
qd quantile density values on qdSup
Functional Data Analysis for Density Functions by Transformation to a Hilbert space, Alexander Petersen and Hans-Georg Mueller, 2016
normaliseDensities
x <- seq(0,2,length.out =512)
y <- rep(0.5,length.out =512)
y.qd <- dens2qd(dens=y, dSup = x) # should equate # 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.