pub struct Histogram {
pub edges: Vec<f64>,
pub counts: Vec<usize>,
pub density: Vec<f64>,
}Expand description
A computed histogram: bin edges (length bins + 1), per-bin counts, and
per-bin density (count / (n * width), so the areas sum to 1).
Fields§
§edges: Vec<f64>Bin edges, ascending; edges.len() == counts.len() + 1.
counts: Vec<usize>Count of samples in each bin.
density: Vec<f64>Density of each bin (count / (n * bin_width)).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Histogram
Auto Trait Implementations§
impl Freeze for Histogram
impl RefUnwindSafe for Histogram
impl Send for Histogram
impl Sync for Histogram
impl Unpin for Histogram
impl UnsafeUnpin for Histogram
impl UnwindSafe for Histogram
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more