pub struct Histogram {
pub edges: Vec<f64>,
pub counts: Vec<usize>,
}Expand description
An equal-width histogram over the non-missing values of a numeric column.
The bin count follows Sturges’ rule (ceil(log2(n) + 1), floored at 1).
edges.len() == counts.len() + 1; the final bin is inclusive of its upper
edge so the maximum value is never dropped.
Fields§
§edges: Vec<f64>Bin edges, ascending. Length is counts.len() + 1 (empty for an empty
column).
counts: Vec<usize>Number of values falling into each bin. Length is one less than
edges.
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