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: f64ex_edge_x: f64in_edge_y: f64ex_edge_y: f64count: u64

Implementations

Returns new PointBin

Arguments
  • in_edge_x - f64 Inclusive Edge along the X axis
  • ex_edge_x - f64 Exclusive Edge along the X axis
  • in_edge_y - f64 Inclusive Edge along the Y axis
  • ex_edge_y - f64 Exclusive Edge along the Y axis
  • count - 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);

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Return Self from string

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.