Function spectrum_analyzer::scaling::divide_by_N_sqrt
source · pub fn divide_by_N_sqrt(fr_val: f32, stats: &SpectrumDataStats) -> f32
Expand description
Like divide_by_N
but divides each value by sqrt(N)
. This is the recommended scaling
in the rustfft
documentation (but is generally applicable).
See https://docs.rs/rustfft/latest/rustfft/#normalization