pub fn decibels_from_amplitude( amplitude: f64, reference_amplitude: f64, ) -> Result<f64, EnergyError>