iaawt | R Documentation |
Performs the iterated amplitude adjusted Wavelet transformation (IAAWT) upon a time-series x
. The algorithm was translated from Chris Keylock's Matlab code into R.
iaawt(x, xdist=x, N=1, ...)
x |
a numeric vector containing the values of the time-series. |
xdist |
a numeric vector containing the values of the distribution to match. Default is set to |
N |
number of surrogates to create. Default is 1. |
... |
other parameters to control for the accuracy. |
The algorithm can be used to randomize a time-series x
phase while keeping the non-linear correlation structure (point-wise Hölder regularity). It can further transform x
to match any empirical distribution xdist
.
Returns a numeric vector or matrix of the surrogated time-series.
Translated from Matlab into R. Original Matlab code by Chris Keylock.
Wolfgang Schadner
Keylock, C. J. (2017), Multifractal surrogate-data generation algorithm that preserves pointwise Holder regularity structure, with initial applications to turbulence, Physical Review E, 95(3), 032123.
iaaft
n <- 1000 # random normal variable with positive auto-correlation: x <- sort(rnorm(n)) # random variable from t-distribution: y <- rt(n, 5) z <- iaawt(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.