Skip to main content

combined_mass

Function combined_mass 

Source
pub fn combined_mass(masses: &[f64]) -> Option<f64>
Expand description

Computes the sum of non-negative masses.

Returns Some(0.0) for an empty slice and None when any mass or the result is invalid.