mne_rt.combiners.FeatureCombiner#
- class mne_rt.combiners.FeatureCombiner(features: list[str] | None = None)[source]#
Bases:
objectAbstract base class for multi-feature NF combiners.
Subclass this and implement
combine()to define a custom mixing strategy. All combiners share the same one-method interface so they can be swapped in without changing the surrounding pipeline code.- Parameters:
Notes
Pass an instance to
record_main()ascombiner=. It then receives a snapshot dict{modality_name: float}once per analysis window, after z-scoring and EMA smoothing. The returned scalar is appended as an additional trace (combined_name,"combined"by default) — the per-modality values are kept, not replaced — and that trace is plotted, saved, broadcast over OSC/LSL, and can drive its own protocol.Only
ZScoredNormCombinernormalises internally. For the others, userecord_main(zscore_normalize=True)when mixing features whose units differ in scale, or one will dominate the result.Methods