pub fn check_fractions_sum_to_one<I>(fractions: I) -> Result<()>where I: Iterator<Item = f64>,
Check that fractions sum to (approximately) one