phase_scramble2: function to perform phase scrambling - based on an input...

Description Usage Arguments Value Author(s) References Examples

View source: R/phase_scramble2.R

Description

A time series can be 'phase scrambled' by randomly reordering the Fourier components in the frequency domian, and then inverse Fourier transforming. This procedure will produce time series that are unrelated to the input time series in all ways other than having the same power spectrum.

Usage

1

Arguments

series

The series you want to get phase-scrambled copies of

Value

series_scrambled

The phase-scrambled real-valued series

Author(s)

Peter Thejll and Bo Christiansen

References

J. Theiler, D. Prichard, Constrained-realization Monte-Carlo method for hypothesis testing, Physica D 94 (1996) 221–235

Examples

1
2
3
org_series <- series
IOseries <- series
series_scrambled <- phase_scramble2(IOseries)

hotblack43/PTHfftSURROGATES documentation built on Dec. 25, 2019, 6:15 p.m.