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

A few specialised methods applicable to Vec<Vec<u8>> (vector of vectors of bytes).

Required methods

Centroid = euclidian mean of a set of points

Weighted Centre

Eccentricity vector added to a non member point,

Weighted eccentricity vector for a non member point

Weighted geometric median, sorted eccentricities magnitudes, cpdf of the weights

The weighted geometric median

Lower triangular part of a covariance matrix of a Vec of u8 vectors.

Implementors