specparam.Bands

class specparam.Bands(input_bands={})[source]

Frequency band definitions.

Examples

Define a bands object storing canonical frequency bands:

>>> bands = Bands({'theta' : [4, 8], 'alpha' : [8, 12], 'beta' : [15, 30]})
Attributes:
bandsdict

Band definitions. Each entry should be {‘label’ : (f_low, f_high)}.

__init__(input_bands={})[source]

Initialize the Bands object.

Parameters:
input_bandsdict, optional

A dictionary of oscillation bands.

Methods

__init__([input_bands])

Initialize the Bands object.

add_band(label, band_definition)

Add a new oscillation band definition.

remove_band(label)

Remove a previously defined oscillation band.

Attributes

definitions

Frequency definitions for all the bands defined in the object.

labels

Labels for all the bands defined in the object.

n_bands

The number of bands defined in the object.

add_band(label, band_definition)[source]

Add a new oscillation band definition.

Parameters:
labelstr

Band label to add.

band_definitiontuple of (float, float)

The lower and upper frequency limit of the band, in Hz.

property definitions

Frequency definitions for all the bands defined in the object.

property labels

Labels for all the bands defined in the object.

property n_bands

The number of bands defined in the object.

remove_band(label)[source]

Remove a previously defined oscillation band.

Parameters:
labelstr

Band label to remove from band definitions.

Examples using specparam.Bands

Exporting Model Results

Exporting Model Results

Manipulating Objects

Manipulating Objects

Plot Model Components

Plot Model Components

Developmental Data Demo

Developmental Data Demo

Topographical Analyses with MNE

Topographical Analyses with MNE

06: Fitting Models over Time

06: Fitting Models over Time

08: Further Analysis

08: Further Analysis

Finding ‘Oscillations’ With Filters

Finding 'Oscillations' With Filters

Band-by-Band

Band-by-Band

Band Ratio Measures

Band Ratio Measures

Conflating Periodic & Aperiodic Changes

Conflating Periodic & Aperiodic Changes