View source: R/Transformations.R
| fcenLRp | R Documentation |
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.
fcenLRp(z, z_step, density, p)
z |
numeric vector, equidistant grid of points on the domain. |
z_step |
spacing of the grid |
density |
numeric vector of the same length as |
p |
numeric vector of the same length as |
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.
A numeric vector of the same length as density: the
P-weighted clr transform evaluated on the grid (an element of L^2(P)).
R. Talska talskarenata@seznam.cz, A. Menafoglio, K. Hron karel.hron@upol.cz, J. J. Egozcue, J. Palarea-Albaladejo
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")}
fcenLR, fcenLRu, fcenLRinv,
trapzc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.