Trait rstats::VecVecu8[][src]

pub trait VecVecu8 {
    fn acentroid(self) -> Vec<f64>;
fn nxnonmember(self, p: &[f64]) -> Vec<f64>;
fn wnxnonmember(self, ws: &[f64], p: &[f64]) -> Vec<f64>;
fn wsortedeccs(self, ws: &[f64], eps: f64) -> (Vec<f64>, Vec<f64>, Vec<f64>);
fn gmedian(self, eps: f64) -> Vec<f64>;
fn wgmedian(self, ws: &[f64], eps: f64) -> Vec<f64>; }
Expand description

Some support for self argument of Vec<Vec> type (vector of vectors of bytes)

Required methods

fn acentroid(self) -> Vec<f64>[src]

Centroid = euclidian mean of a set of points

fn nxnonmember(self, p: &[f64]) -> Vec<f64>[src]

Eccentricity vector added to a non member point,

fn wnxnonmember(self, ws: &[f64], p: &[f64]) -> Vec<f64>[src]

Weighted eccentricity vector for a non member point

fn wsortedeccs(self, ws: &[f64], eps: f64) -> (Vec<f64>, Vec<f64>, Vec<f64>)[src]

Weighted geometric median, sorted eccentricities magnitudes, cummulative weights

fn gmedian(self, eps: f64) -> Vec<f64>[src]

Geometric median of a set of nD points

fn wgmedian(self, ws: &[f64], eps: f64) -> Vec<f64>[src]

The weighted geometric median

Implementations on Foreign Types

impl VecVecu8 for &[Vec<u8>][src]

fn nxnonmember(self, p: &[f64]) -> Vec<f64>[src]

Eccentricity vector added to a non member point, while the true geometric median is as yet unknown. This function is suitable for a single non-member point.

fn wnxnonmember(self, ws: &[f64], p: &[f64]) -> Vec<f64>[src]

Next approximate weighted median, from a non member point.

fn wsortedeccs(self, ws: &[f64], eps: f64) -> (Vec<f64>, Vec<f64>, Vec<f64>)[src]

Weighted geometric median, sorted eccentricities magnitudes, associated cummulative probability density function of the weights

fn gmedian(self, eps: f64) -> Vec<f64>[src]

Secant method with recovery from divergence for finding the geometric median

fn wgmedian(self, ws: &[f64], eps: f64) -> Vec<f64>[src]

Secant method with recovery for finding the weighted geometric median

fn acentroid(self) -> Vec<f64>[src]

Implementors