View source: R/empirical_mode_decomposition.R
EEMD | R Documentation |
This function performs ensemble empirical mode decomposition (EEMD).
EEMD(sig, tt, noise.amp, trials, nimf, trials.dir = NULL, verbose = TRUE,
spectral.method = "arctan", diff.lag = 1, tol = 5, max.sift = 200,
stop.rule = "type5", boundary = "wave", sm = "none",
smlevels = c(1), spar = NULL, max.imf = 100, interm = NULL,
noise.type = "gaussian", noise.array = NULL)
sig |
a time series to be decomposed (vector) |
tt |
The sample times of |
noise.amp |
Amplitude of white noise to use in denoising algorithm |
trials |
Number of times to run EMD |
nimf |
Number of IMFs to record, IMFs past this number will not be saved |
trials.dir |
Directory where EEMD trial files will be stored, defaults to “trials.” This will create a directory if none exists. |
verbose |
If TRUE, notify when each trial is complete |
spectral.method |
See |
diff.lag |
See |
tol |
See |
max.sift |
See |
stop.rule |
See |
boundary |
See |
sm |
See |
smlevels |
See |
spar |
See |
max.imf |
See |
interm |
See |
noise.type |
If unspecified or |
noise.array |
If |
This function performs ensemble empirical mode decomposition, a noise assisted version of the EMD algorithm. The EEMD works by adding a certain amplitude of white noise to a time series, decomposing it via EMD, and saving the result. If this is done enough times, the averages of the noise perturbed IMFs will approach the “true” IMF set. The EEMD can ameliorate mode mixing and intermittency problems (see references section).
This EEMD algorithm creates a directory trials.dir
and saves each EMD trial into this directory.
The number of trials is defined using trials
.
The trial files in this directory can then be processed using EEMDCompile
to produce the averaged IMF set, or to plot the Hilbert spectrogram of the data.
Keep in mind that the EEMD is an expensive algorithm and may take significant time to run.
emd.result |
The result of each individual EMD trial. This is saved directly to files in directory |
Previous versions of this function used a uniform random noise distribution (i.e. runif
) to generate the noise time series.
The default noise time series is now Gaussian in accordance with existing EEMD literature.
Daniel Bowman danny.c.bowman@gmail.com
Wu, Z. A. and Huang, N. E. (2009) Ensemble empirical mode decomposition: A noise assisted data analysis method. Advances in Adaptive Data Analysis, 1, 1-41.
Sig2IMF
, CombineTrials
, EEMDCompile
, PlotIMFs
.
data(PortFosterEvent)
trials <- 10
nimf <- 10
noise.amp <- 6.4e-07
trials.dir <- "test"
set.seed(628)
#Run EEMD (this may take some time)
## Not run: EEMD(sig, tt, noise.amp, trials, nimf, trials.dir = trials.dir)
#Compile the results
## Not run: EEMD.result <- EEMDCompile(trials.dir, trials, nimf)
#Plot the IMFs
time.span <- c(5, 10)
imf.list <- 1:3
os <- TRUE
res <- TRUE
## Not run: PlotIMFs(EEMD.result, time.span, imf.list, os, res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.