wavelet: Wavelet Transformation With Phase

View source: R/signal-wavelet.R

waveletR Documentation

Wavelet Transformation With Phase

Description

The code was translated from Matlab script written by Brett Foster, Stanford Memory Lab, 2015 with permission to use in 'RAVE'.

Usage

wavelet(data, freqs, srate, wave_num, demean = TRUE)

Arguments

data

- vector of time series to be decomposed

freqs

- vector of center frequencies for decomposition

srate

- sample rate (in Hz)

wave_num

- desired number of cycles in wavelet (typically 3-20 for frequencies 2-200).

demean

- whether to remove the mean of data first?

Details

Decompose time series data into time-frequency representation (spectral decomposition) using wavelet transform. Employs "Morlet" wavelet method (gaussian taper sine wave) to obtain the analytic signal for specified frequencies (via convolution).


beauchamplab/rave documentation built on Feb. 23, 2024, 7:20 a.m.