Band Powers
Compute standard EEG frequency band powers from a sample array:band_powers returns a WasmBandPowers object with named fields for each standard band.
Individual Band Functions
For targeted analysis, use individual band functions:Power Spectrum
Compute the full power spectrum via FFT:Input Format
All signal processing functions expect:| Parameter | Type | Description |
|---|---|---|
samples | Float64Array or number[] | Single-channel EEG time series |
sampleRateHz | number | Sampling rate in Hz (e.g., 256 for Muse) |
HeadbandFrameV1.eeg.samples), extract individual channels and process them separately: