Trait peroxide::statistics::stat::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§