Trait rstats::VecVecu8 [−][src]
pub trait VecVecu8 { fn acentroid(self) -> 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>; }
Expand description
Some support for self argument of Vec<Vec
Required methods
Weighted eccentricity vector for a non member point
Weighted geometric median, sorted eccentricities magnitudes, cpdf of the weights
Implementations on Foreign Types
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.
Next approximate weighted median, from a non member point.
Secant method with recovery from divergence for finding the geometric median
Secant method with recovery for finding the weighted geometric median
Flattened lower triangular part of a covariance matrix for u8 vectors in self. Since covariance matrix is symmetric (positive semi definite), the upper triangular part can be trivially generated for all j>i by: c(j,i) = c(i,j). N.b. the indexing is always assumed to be in this order: row,column. The items of the resulting lower triangular array c[i][j] are here flattened into a single vector in this double loop order: left to right, top to bottom