ana | R Documentation |
Flow anamorphosis transform Compute a transformation that gaussianizes a certain data set
ana(Y, sigma0 = 0.1, sigma1 = 1, steps = 30, sphere = TRUE, weights = NULL)
Y |
data set defining the gaussianization |
sigma0 |
starting spread of the kernels |
sigma1 |
final spread of the kernels |
steps |
number of steps to linearize the transform (default 30 is good) |
sphere |
boolean, should the transform include a spherifization step,
making |
weights |
weights to incorporate in the compuations, length=nrow(Y) |
a function with arguments (x, inv=FALSE)
, where x
will be the
data to apply the transformation to, and inv=FALSE
will indicate if the direct
or the inverse transformation is desired
K. Gerald van den Boogaart
anaForward, anaBackward, sphTrans
library(compositions)
data("jura", package="gstat")
Y = acomp(jura.pred[,c(10,12,13)])
plot(Y)
anafun = ana(Y)
class(anafun)
z = anafun(Y)
plot(z)
y = anafun(z, inv=TRUE)
plot(data.frame(orig=Y,recalc=y))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.