get_band_power
Calculate EEG band power across delta, theta, alpha, beta, and gamma frequencies over a recent time window, per channel and averaged, with relative values to compensate for impedance drift.
Instructions
Band power over the most recent window, per channel and averaged.
The workhorse feature for neurofeedback and closed-loop triggering. Prefer
the _rel (relative) values for thresholds: they are largely immune to
impedance drift, so a threshold set at the start of a session still means
the same thing an hour later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bands | No | Band names to compute. Defaults to delta, theta, alpha, beta, gamma. | |
| seconds | No | Window length. 2 s is a reasonable default; shorter windows are noisier, longer ones respond more slowly. | |
| channels | No | Channel names to include. Defaults to all. | |
| filtered | No | Use the filtered buffer when a chain is set. | |
| relative | No | Also return each band as a fraction of total power. | |
| session_id | Yes | The session to analyse. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||