Function spectrum_analyzer::scaling::scale_to_zero_to_one
source · pub fn scale_to_zero_to_one(fr_val: f32, stats: &SpectrumDataStats) -> f32
Expand description
Scales each frequency value/amplitude in the spectrum to interval [0.0; 1.0]
.
Function is of type SpectrumScalingFunction
. Expects that SpectrumDataStats::min
is
not negative.