in waterfall/src/lib.rs [83:94]
fn max_weight(&self, heatmap: &heatmap::Heatmap) -> f64 {
let mut max_weight = 0.0;
for slice in heatmap {
for b in slice.histogram() {
let weight = self.weight(b.count().into(), b.high() - b.low() + 1);
if weight > max_weight {
max_weight = weight;
}
}
}
max_weight
}