ezmsg-org / ezmsg

Pure-Python DAG-based high-performance SHM-backed pub-sub and multi-processing pattern
https://ezmsg.readthedocs.io/en/latest/
MIT License
9 stars 5 forks source link

Request: sigproc SpectralBandpower #46

Closed cboulay closed 4 months ago

cboulay commented 8 months ago

A Collection combining Window + Spectrum (or #44 Spectrogram) and #45 RangedMean. The output will be the power within each band, based on slicing and averaging the frequency axis.

I don't mind making a PR for this, pending #45, but I'd like to know if it's desired or not and if we can discuss the design a bit.

cboulay commented 8 months ago

There are other multi-band estimators like filterbank + analytic magnitude or filterbank + square + smooth + sqrt.

It would also be great to get specparam in realtime but they haven't optimized that yet.

I think the FFT-based SpectralBandpower is probably the easiest to implement.