cogpy.spectral.process_spectrogram
Post-processing helpers for spectrogram-like arrays.
Utilities here are primarily geared towards xarray-backed spectrogram tensors (e.g., clipping frequency ranges, smoothing, and simple outlier repair).
Status
STATUS: REFERENCE Reason: Post-processing ideas from a previous project. Not actively used but patterns (outlier repair, frequency clipping, smoothing) will be selectively reused. Do not build new pipelines on this module. Superseded by: n/a Safe to remove: no
Functions
|
|
|
|
|
x: numpy array kernel: tuple of ints window size for outlier detection threshold: float thresholdold for outlier detection |
|
gauss_sigma = (0.5, 0.5, 0.5, 10) # AP, ML, freq, time |
|
|
|
|
|
|
|
|
|
|
|
med_size = (3, 3, 1, 1) # h, w, f, t |
|
|
|
arr: numpy array kernel: tuple of ints window size for outlier detection threshold: float thresholdold for outlier detection |
|