Learn R Programming

biwavelet (version 0.20.22)

wtc_sig_parallel: Parallel wtc.sig

Description

Parallelized Monte Carlo simulation equivalent to wtc.sig.

Usage

wtc_sig_parallel(
  nrands = 300,
  lag1,
  dt,
  ntimesteps,
  pad = TRUE,
  dj = 1/12,
  s0,
  J1,
  max.scale = NULL,
  mother = "morlet",
  sig.level = 0.95,
  quiet = TRUE
)

Arguments

nrands

Number of Monte Carlo randomizations.

lag1

Vector containing the AR(1) coefficient of each time series.

dt

Length of a time step.

ntimesteps

Number of time steps in time series.

pad

Pad the values will with zeros to increase the speed of the transform.

dj

Spacing between successive scales.

s0

Smallest scale of the wavelet.

J1

Number of scales - 1.

max.scale

Maximum scale.

mother

Type of mother wavelet function to use. Can be set to morlet, dog, or paul. Significance testing is only available for morlet wavelet.

sig.level

Significance level to compute.

quiet

Do not display progress bar.

See Also

foreach

wtc.sig

Examples

Run this code
# Not run: library(foreach)
# library(doParallel)
# cl <- makeCluster(4, outfile="") # number of cores. Notice 'outfile'
# registerDoParallel(cl)
# wtc_sig_parallel(your parameters go here)
# stopCluster(cl)

Run the code above in your browser using DataLab