CombineTrials: Gather EEMD trial files

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

View source: R/empirical_mode_decomposition.R

Description

This function gathers trial files from multiple directories, renumbers them, and saves them to a single directory for processing using EEMDCompile.

Usage

1
CombineTrials(in.dirs, out.dir, copy=TRUE)  

Arguments

in.dirs

Directories containing trial file sets from one EEMD run.

out.dir

Directory in which to save all trial files.

copy

Copy files (TRUE) or move them (FALSE).

Details

Parallel processing is an efficient method for running EEMD. However, this will result in several directories, each with trial files numbered from 1 to N. These files cannot simply be copied together into the same directory, because then they would overwrite each other. This function gathers all trial files in multiple directories, renumbers them, and saves them in a different directory.

Value

The trial files are saved in the directory specified by out.dir.

Author(s)

Daniel Bowman [email protected]

See Also

EEMD, EEMDCompile

Examples

1
2
3
4
5
6
7
#Suppose you have run 3 different EEMD sets of 100 trials each 
#and saved the results in EEMD1, EEMD2, EEMD3, respectively:
in.dirs <- c("/home/user/EEMD1", "/home/user/EEMD2/", "/home/user/EEMD3")
out.dir <- "/home/user/all.trials"
## Not run: CombineTrials(in.dirs, out.dir)
#Now all your trials should be located in /home/user/all.trials, 
#numbered 1 through 300

Example output



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