Learn R Programming

rsleep (version 1.0.5)

bands_power: Computes spectral power of bands listed in the bands argument.

Description

`bands_power` calculates power spectral densities estimates using Welch's method on bands. Bands are computed from spectrogram bands equal or greater than lower limit and inferior to the upper limit.

Usage

bands_power(bands, signal, sRate, broadband = c(0.5, 40))

Value

A list of bands powers.

Arguments

bands

A list of bands to compute with lower and upper limits in the form `list(c(0,4),c(4,8))``

signal

Numerical vector of the signal.

sRate

Signal sample rate in Hertz.

broadband

The broadband to normalize by.

Examples

Run this code
bands_power(bands = list(c(0,4),c(4,8)),signal = sin(c(1:10000)),sRate = 200)

Run the code above in your browser using DataLab