Commit 7d2c3cc
Power mode (#6)
* add way to turn detrend off. update python api to expose it.
* Add stacked per-axis spectrograms (T, F, C) to senpy API (#5)
* Add StackedSpectrogramResult and compute_stacked_spectrograms to senpy API
Introduces per-axis NUFFT spectrogram stacking along a channel axis:
- StackedSpectrogramResult: container for (T, F, C) spectral tensors
- STACKED_SPECTROGRAM_CHANNELS: default channel list ["x", "y", "z", "mag", "jerk"]
- compute_stacked_spectrograms(): computes independent NUFFT spectrograms
for each channel (x, y, z, magnitude, jerk) and aligns them to a shared
time grid before stacking into a (T, F, C) array
- Tests covering shape, channel parity with standalone compute_nufft_spectrogram,
subset channels, and rejection of unknown channel names
https://claude.ai/code/session_01REqMjHZCGxWXDYAmiu9SE4
* clean up and optimize
* compute and return norm when spectrogram is requested, instead of copying complex to python and then doing norm.
* clean up and optimize the api. accept version 2.0 is here.
* add note that psd = power already from cpp definition
---------
Co-authored-by: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent efa4e15 commit 7d2c3cc
6 files changed
Lines changed: 442 additions & 72 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
| 69 | + | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments