ana: Flow anamorphosis transform Compute a transformation that...

View source: R/Anamorphosis.R

anaR Documentation

Flow anamorphosis transform Compute a transformation that gaussianizes a certain data set

Description

Flow anamorphosis transform Compute a transformation that gaussianizes a certain data set

Usage

ana(Y, sigma0 = 0.1, sigma1 = 1, steps = 30, sphere = TRUE, weights = NULL)

Arguments

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 Y spherical?

weights

weights to incorporate in the compuations, length=nrow(Y)

Value

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

Author(s)

K. Gerald van den Boogaart

See Also

anaForward, anaBackward, sphTrans

Examples

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))

gmGeostats documentation built on April 18, 2023, 5:08 p.m.