pub struct Distribution {
pub statistic: Statistic,
pub last_sequence: Vec<f32>,
}
Fields§
§statistic: Statistic
§last_sequence: Vec<f32>
Implementations§
Source§impl Distribution
impl Distribution
pub fn push(&mut self, value: f32)
pub fn add(&mut self, value: &[f32])
pub fn last_sequence(&self) -> &Vec<f32>
pub fn count(&self) -> i32
pub fn mean(&self) -> f32
pub fn variance(&self) -> f32
pub fn standard_deviation(&self) -> f32
pub fn skewness(&self) -> f32
pub fn kurtosis(&self) -> f32
pub fn min(&self) -> f32
pub fn max(&self) -> f32
pub fn clear(&mut self)
pub fn log2(&self) -> f32
pub fn entropy(&self) -> f32
pub fn percentile(&self, p: f32) -> f32
Trait Implementations§
Source§impl Clone for Distribution
impl Clone for Distribution
Source§fn clone(&self) -> Distribution
fn clone(&self) -> Distribution
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for Distribution
impl Default for Distribution
Source§fn default() -> Distribution
fn default() -> Distribution
Returns the “default value” for a type. Read more
Source§impl From<&[f32]> for Distribution
impl From<&[f32]> for Distribution
Source§impl PartialEq for Distribution
impl PartialEq for Distribution
impl StructuralPartialEq for Distribution
Auto Trait Implementations§
impl Freeze for Distribution
impl RefUnwindSafe for Distribution
impl Send for Distribution
impl Sync for Distribution
impl Unpin for Distribution
impl UnwindSafe for Distribution
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