pub fn histogram(data: &[f64], rule: BinRule) -> Result<Histogram, StatsError>Expand description
Build a Histogram from data using the chosen BinRule. Non-finite
values are ignored.
ยงErrors
StatsError::EmptyInputif no finite values remain.StatsError::ZeroVarianceif all values are identical (no range to bin).StatsError::InvalidBandwidthif an explicitBinRule::WidthorBinRule::Countis non-positive.