EEMDCompile: Process EEMD results

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/empirical_mode_decomposition.R

Description

This function compiles individual trial files from an EEMD run, allowing other functions to plot IMFs and Hilbert spectrograms of the data.

Usage

1
EEMDCompile(trials.dir, trials, nimf)  

Arguments

trials.dir

Directory where previously generated EEMD trial files are stored.

trials

Number of trial files to read. This will warn users if the number of requested trials is greater than the number of files in the directory.

nimf

Number of IMFs per EMD run. IMFs past this number will not be saved.

Details

The EEMD algorithm can generate hundreds of files, resulting in massive amounts of data. The EEMDCompile function processes these files, generating an averaged IMF set and compiling the Hilbert spectrogram of each EMD run. The output of EEMDCompile can be used in PlotIMFs and HHGramImage. The averaged IMF set from EEMDCompile can be resifted using EEMDResift.

Value

EEMD.result

The averaged IMF set and individual Hilbert spectra of EMD trials generated through EEMD.

Author(s)

Daniel Bowman [email protected]

See Also

EEMD, CombineTrials

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
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)

Example output



hht documentation built on May 29, 2017, 9:26 a.m.