pub struct Distribution<F: Float> { /* private fields */ }Implementations§
Source§impl<F: Float> Distribution<F>
impl<F: Float> Distribution<F>
pub fn with_capacity(capacity: usize) -> Self
pub fn add(&mut self, value: F)
pub fn count(&self) -> usize
pub fn min(&self) -> F
pub fn max(&self) -> F
pub fn mean(&self) -> F
pub fn sum(&self) -> F
pub fn variance(&self) -> Option<F>
pub fn std_dev(&self) -> Option<F>
pub fn skewness(&self) -> Option<F>
pub fn kurtosis(&self) -> Option<F>
pub fn clear(&mut self)
Trait Implementations§
Source§impl<F: Clone + Float> Clone for Distribution<F>
impl<F: Clone + Float> Clone for Distribution<F>
Source§fn clone(&self) -> Distribution<F>
fn clone(&self) -> Distribution<F>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F> Extend<F> for Distribution<F>where
F: Float,
impl<F> Extend<F> for Distribution<F>where
F: Float,
Source§fn extend<T: IntoIterator<Item = F>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = F>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<F: PartialEq + Float> PartialEq for Distribution<F>
impl<F: PartialEq + Float> PartialEq for Distribution<F>
Source§fn eq(&self, other: &Distribution<F>) -> bool
fn eq(&self, other: &Distribution<F>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<F: PartialEq + Float> StructuralPartialEq for Distribution<F>
Auto Trait Implementations§
impl<F> Freeze for Distribution<F>where
F: Freeze,
impl<F> RefUnwindSafe for Distribution<F>where
F: RefUnwindSafe,
impl<F> Send for Distribution<F>where
F: Send,
impl<F> Sync for Distribution<F>where
F: Sync,
impl<F> Unpin for Distribution<F>where
F: Unpin,
impl<F> UnsafeUnpin for Distribution<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for Distribution<F>where
F: UnwindSafe,
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