Worker/utility function serving the analysis carried out in synmat for methods based on coherence or real part of the cross-wavelet transform.
wavmatwork(dat, times, scale.min, scale.max.input, sigma, f0, norm, treatment)
A locations (rows) x time (columns) matrix of measurements
The times at which measurements were made, spacing 1
The smallest scale of fluctuation that will be examined. At least 2. Used only for wavelet-based methods.
The largest scale of fluctuation guaranteed to be examined. Only used for wavelet-based methods.
The ratio of each time scale examined relative to the next timescale. Should be greater than 1. Only used for wavelet-based methods.
The ratio of the period of fluctuation to the width of the envelope. Only used for wavelet-based methods.
The normalization of wavelet transforms to be used. One of "none", "phase", "powind".
Either "Mod" or "Re"
wavmatwork
returns a list consisting of:
The timescales of analysis
An array, locations by locations by timescales, containing either the
coherences (for treatment="Mod"
) or the real parts of the cross-wavelet transforms
(for treatment="Re"
) between locations.