1 2 3 4 5 6 7 8 9 10 11 12 13
//! traits for the normalisers module. pub trait Normaliser { /// Normalises a value. fn normalise(&self, input: f32) -> f32; fn inverse_normalise(&self, input: f32) -> f32 { input } /// Returns the key of the normaliser. fn key() -> String; }