Coherence analyses
ContinuousWavelet.coherence
— Methodcoherence(wt::ContinuousWaveletTransform,
X::AbstractArray{Float64, 2};
nsurrogate=0, α=0.05)
Implements the self-coherence of a set of time-series. The self-coherence is defined as
This measure can be interpreted as how coherent a process is from realization to realization. Typical applications are the analyses of EEG event-related potentials and similar time-series of repeated experiments.
Arguments
wt
: Specifies the wavelet transform to use.X
: Specifies the time-series to analyze. Each single time-series (trial) is stored as a column inX
.- 'nsurrogate': A keyword argument specifying the number of surrogate samples to generate from the given time-series for the estimation of the point-wise significant test. By default it is 0 and no surrogate samples are generated.
α
: A keyword arguement specifying the significance level for the point-wise significance test. By default set toα=0.05
.
ContinuousWavelet.coherence
— Methodcoherence(wt::ContinuousWaveletTransform,
X::AbstractArray{Float64, 2}, Y::AbstractArray{Float64, 2};
nsurrogate=0, α=0.05)
Canonical wavelet coherence as defined by
That is the normalized expectation value of the product of the two wavelet transformed, where z^*
is the complex conjugate.
In contrast to the self-coherence, this analysis does estimate the coherence of a process to itself but the coherence between two observed processes. It is therefore necessary that the two sets of time-series X
and Y
are of the same shape. That is, each trial of X
and Y
must consists of the same number of samples (rows) and both sets must contain the same number of trials (columns).
Arguments
wt
: Specifies the wavelet transform to use.X
: Specifies one time-series to analyze. Each single time-series (trial) is stored as a column inX
. Must be of same shape asY
.Y
: Specifies one time-series to analyze. Each single time-series (trial) is stored as a column inY
. Must be of same shape asX
.- 'nsurrogate': A keyword argument specifying the number of surrogate samples to generate from the given time-series for the estimation of the point-wise significant test. By default it is 0 and no surrogate samples are generated.
α
: A keyword arguement specifying the significance level for the point-wise significance test. By default set toα=0.05
.
Coherence analysis result
ContinuousWavelet.ContinuousWaveletCoherence
— TypeRepresents a continuous wavelet coherence analysis.
Fields:
coh
: The actual coherence as a complex value. The layout of this array follows the layout ofContinuousWaveletTransformed
. That is, each voice is stored in a column, starting with the smallest scale.scales
: The vector of scales at which the wavelet transform is performed.wavelet
: The wavelet being used.α
: The point-wise empirical signigicance level of the coherence analysis obtained by means of surrogate data. HoldsNaN
if no skipped.
Missing docstring for Plots.contourf(A::ContinuousWaveletCoherence; drawvalid=true, shadevalid=true, kw...)
. Check Documenter's build log for details.