cwt_spectrogram: Computes a spectrogram using CWT

View source: R/cwt-spectrogram.R

cwt_spectrogramR Documentation

Computes a spectrogram using CWT

Description

A port of Continuous Wavelet transform to rethomics. This function is intended to be used as an argument in the spectrogram wrapper.

Usage

cwt_spectrogram(x, period_range = c(hours(1), hours(32)),
  sampling_rate = 1/mins(1), resolution = 1/64,
  summary_time_window = mins(30))

Arguments

x

numeric vector

period_range

vector of size 2 defining minimal and maximal range of period to study (in seconds)

sampling_rate

the – implicitly regular – sampling rate of x (in hertz)

resolution

the period resolution of the CWT (i.e. the number of suboctaves)

summary_time_window

the sampling period after post-processing. Values of power are avegraged over this time window, for each period.

See Also

  • spectrogram – to apply this fucntion to all indivvidual, with some preprocessing.

  • WaveletComp::analyze.wavelet – the orginal function for cwt_spectrogram


rethomics/zeitgebr documentation built on April 11, 2024, 2:28 a.m.