peroxide::statistics::stat

Trait OrderedStat

Source
pub trait OrderedStat {
    type Array;
    type Value;

    // Required methods
    fn median(&self) -> Self::Value;
    fn quantile(&self, q: f64, qtype: QType) -> Self::Value;
    fn quantiles(&self, q: Vec<f64>, qtype: QType) -> Self::Array;
}
Expand description

Trait for Ordered Statistics

  • median
  • quantile

Required Associated Types§

Required Methods§

Source

fn median(&self) -> Self::Value

Source

fn quantile(&self, q: f64, qtype: QType) -> Self::Value

Source

fn quantiles(&self, q: Vec<f64>, qtype: QType) -> Self::Array

Implementations on Foreign Types§

Source§

impl OrderedStat for Vec<f64>

Source§

type Array = Vec<f64>

Source§

type Value = f64

Source§

fn median(&self) -> Self::Value

Source§

fn quantile(&self, q: f64, qtype: QType) -> Self::Value

Source§

fn quantiles(&self, q: Vec<f64>, qtype: QType) -> Self::Array

Implementors§