Compute the median frequency of a Fourier-domain patch.
This measure divides a signal’s power spectrum into two regions of equal total power. The input patch must already be transformed with Patch.dft or Patch.stft.
Frequency dimension over which to compute the descriptor. This can be either the original dimension name, such as "time", or the Fourier dimension name, such as "ft_time". If omitted, a single Fourier dimension is inferred.
fmin
Optional lower frequency bound.
fmax
Optional upper frequency bound.
spectral_format
Representation of the spectral data. "auto" uses DASCore DFT/STFT metadata when available. Other options are "fft" for complex Fourier coefficients, "amplitude" for amplitude spectra, "power" for power spectra, and "density" for power spectral densities.
negative_frequencies
How to handle negative frequency bins. "auto" drops negative bins only when power is symmetric, "drop" always uses non-negative frequencies, "raise" rejects spectra with negative bins, and "keep" includes them in the calculation.
Returns
The Patch instance with the median-frequency as data.