fcenLRp: Functional clr transformation of a density with respect to a...

View source: R/Transformations.R

fcenLRpR Documentation

Functional clr transformation of a density with respect to a reference measure P

Description

Maps a P-density from the weighted Bayes space B^2(P) to the weighted space L^2(P), where the reference measure P has density p with respect to the Lebesgue measure,

\mathrm{fcenLR}_P(f)(z) = \log f(z) - \frac{1}{P(\Omega)}\int_\Omega \log f(t)\,p(t)\,dt.

With p constant this reduces to fcenLR.

Usage

fcenLRp(z, z_step, density, p)

Arguments

z

numeric vector, equidistant grid of points on the domain.

z_step

spacing of the grid z.

density

numeric vector of the same length as z: strictly positive values of the P-density on the grid.

p

numeric vector of the same length as z: density of the reference measure P with respect to the Lebesgue measure.

Details

Integrals are approximated by trapzc, so z must be an equidistant grid with spacing z_step. All values of density must be strictly positive. The result is centred with respect to P: the integral of fcenLRp(...) * p is zero. A worked example covering fcenLR, fcenLRp and fcenLRu is given in fcenLRu.

Value

A numeric vector of the same length as density: the P-weighted clr transform evaluated on the grid (an element of L^2(P)).

Author(s)

R. Talska talskarenata@seznam.cz, A. Menafoglio, K. Hron karel.hron@upol.cz, J. J. Egozcue, J. Palarea-Albaladejo

References

Talska, R., Menafoglio, A., Hron, K., Egozcue, J. J., Palarea-Albaladejo, J. (2020). Weighting the domain of probability densities in functional data analysis. Stat. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1002/sta4.283")}

See Also

fcenLR, fcenLRu, fcenLRinv, trapzc


robCompositions documentation built on Nov. 1, 2026, 1:06 a.m.