// Count adjacent violations of a nondecreasing response curve before monotonic calibration. pub fn isotonic_breaks(response: vector, tolerance: f64) -> i64 { if tolerance<0.0 { return -1; } let mut i = 1; let mut violations = 0; while i