pub struct PointBin {
pub in_edge_x: f64,
pub ex_edge_x: f64,
pub in_edge_y: f64,
pub ex_edge_y: f64,
pub count: u64,
}Expand description
A 2D histogram is a Collection of PointBins
Fields§
§in_edge_x: f64§ex_edge_x: f64§in_edge_y: f64§ex_edge_y: f64§count: u64Implementations§
Source§impl PointBin
impl PointBin
Sourcepub fn new(
in_edge_x: f64,
ex_edge_x: f64,
in_edge_y: f64,
ex_edge_y: f64,
count: u64,
) -> PointBin
pub fn new( in_edge_x: f64, ex_edge_x: f64, in_edge_y: f64, ex_edge_y: f64, count: u64, ) -> PointBin
Returns new PointBin
§Arguments
in_edge_x- f64 Inclusive Edge along the X axisex_edge_x- f64 Exclusive Edge along the X axisin_edge_y- f64 Inclusive Edge along the Y axisex_edge_y- f64 Exclusive Edge along the Y axiscount- u64 PointBin value
Expectected to be created by calling hist on a Collection
Trait Implementations§
Source§impl AddAssign<u64> for PointBin
impl AddAssign<u64> for PointBin
Source§fn add_assign(&mut self, other: u64)
fn add_assign(&mut self, other: u64)
Increment PointBin count.
§Example
use calcify::PointBin;
let mut test_PointBin = PointBin::new(0.0,1.0,0.0,1.0,10);
test_PointBin += 1;
assert_eq!(test_PointBin.count, 11);Source§impl Deserializable for PointBin
impl Deserializable for PointBin
Source§impl Serializable for PointBin
impl Serializable for PointBin
impl Copy for PointBin
impl StructuralPartialEq for PointBin
Auto Trait Implementations§
impl Freeze for PointBin
impl RefUnwindSafe for PointBin
impl Send for PointBin
impl Sync for PointBin
impl Unpin for PointBin
impl UnwindSafe for PointBin
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