pub fn normalised_to_index(input: f32, max: usize) -> usize
get the index using a value normalised to the dimensions of your vector, array, or other storage indexed or sized structures