pub struct Histogram {
pub bin_bounds: Vec<f64>,
pub bin_counts: Vec<f64>,
pub bin_densities: Vec<f64>,
/* private fields */
}
Expand description
A one-dimensional histogram with equal binning.
Fields§
§bin_bounds: Vec<f64>
§bin_counts: Vec<f64>
§bin_densities: Vec<f64>
Implementations§
Source§impl Histogram
impl Histogram
Sourcepub fn from_slice(v: &[f64], bins: HistogramBins) -> Histogram
pub fn from_slice(v: &[f64], bins: HistogramBins) -> Histogram
Examples found in repository?
More examples
pub fn num_bins(&self) -> usize
pub fn get_style(&self) -> &BoxStyle
pub fn get_values(&self) -> &[f64]
Trait Implementations§
Source§impl ContinuousRepresentation for Histogram
impl ContinuousRepresentation for Histogram
Source§fn range(&self, dim: u32) -> (f64, f64)
fn range(&self, dim: u32) -> (f64, f64)
The maximum range in each dimension. Used for auto-scaling axes.
fn to_svg( &self, x_axis: &ContinuousAxis, y_axis: &ContinuousAxis, face_width: f64, face_height: f64, ) -> Group
Source§fn legend_svg(&self) -> Option<Group>
fn legend_svg(&self) -> Option<Group>
Returns None if no legend has been specified for this representation
fn to_text( &self, x_axis: &ContinuousAxis, y_axis: &ContinuousAxis, face_width: u32, face_height: u32, ) -> String
Auto Trait Implementations§
impl Freeze for Histogram
impl RefUnwindSafe for Histogram
impl Send for Histogram
impl Sync for Histogram
impl Unpin for Histogram
impl UnwindSafe for Histogram
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