Produce a set of "normalized" values with the given floor value.
(&self, floor_min: i64)
| 94 | impl RawResults { |
| 95 | /// Produce a set of "normalized" values with the given floor value. |
| 96 | pub fn normalize(&self, floor_min: i64) -> NormalizedResults { |
| 97 | NormalizedResults( |
| 98 | self.0.iter().map(|x| *x as i64 - floor_min as i64).collect() |
| 99 | ) |
| 100 | } |
| 101 | |
| 102 | /// Return the [`f32`] average over values in this list. |
| 103 | pub fn get_avg(&self) -> f32 { |
nothing calls this directly
no test coverage detected