gmGeostats (version 0.10-6)

ana: 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

See Also

anaForward, anaBackward, sphTrans

Examples

Run this code
# NOT RUN {
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))
# }

Run the code above in your browser using DataLab