pub fn normalise(input: f64, min: f64, max: f64) -> f64
normalise a value between the minimum and maximum value it could be