pub struct Bin {
pub in_edge: f64,
pub ex_edge: f64,
pub count: u64,
}
Expand description
A histogram is a Collection of Bins
Returns new Bin
in_edge
- f64 Inclusive Edge
ex_edge
- f64 Exclusive Edge
count
- u64 Bin value
Increment Bin count.
use calcify::Bin;
let mut test_bin = Bin::new(0.0,1.0,10);
test_bin += 1;
assert_eq!(test_bin.count, 11);
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Return a tuple of Self and a &u8 of remaining unparsed bytes from a byte array
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Return object intensive json string Read more
Return Result wrapped Vec in MsgPack
Format is not like to_json it is array intensive not object Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.