pub struct Bin {
pub in_edge: f64,
pub ex_edge: f64,
pub count: u64,
}Expand description
A histogram is a Collection of Bins
Fields§
§in_edge: f64§ex_edge: f64§count: u64Implementations§
Trait Implementations§
Source§impl AddAssign<u64> for Bin
impl AddAssign<u64> for Bin
Source§fn add_assign(&mut self, other: u64)
fn add_assign(&mut self, other: u64)
Increment Bin count.
§Example
use calcify::Bin;
let mut test_bin = Bin::new(0.0,1.0,10);
test_bin += 1;
assert_eq!(test_bin.count, 11);Source§impl Deserializable for Bin
impl Deserializable for Bin
Source§impl Serializable for Bin
impl Serializable for Bin
impl Copy for Bin
impl StructuralPartialEq for Bin
Auto Trait Implementations§
impl Freeze for Bin
impl RefUnwindSafe for Bin
impl Send for Bin
impl Sync for Bin
impl Unpin for Bin
impl UnwindSafe for Bin
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