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: u64
Implementations
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
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);
Auto Trait Implementations
impl RefUnwindSafe for PointBin
impl UnwindSafe for PointBin
Blanket Implementations
Mutably borrows from an owned value. Read more