[][src]Module rstats::vimpls

Structs

GreenIt

GreenIt struct facilitates printing (in green) any type that has Display implemented.

GreenVec

GreenVec struct facilitates printing (in green) of vectors of any type that has Display implemented.

Functions

genvec

Generates a random f64 vector of size d x n suitable for testing. It needs two seeds.
Uses local closure rand to generate random numbers (avoids dependencies).
Random numbers are in the open interval 0..1 with uniform distribution.

scalarecc

Converts the set of vectors produced by eccentricities to their magnitudes normalised by n. the output can be typically passed to median or minmax to find the Outlier and the Medoid

sortf

Sorts a mutable Vec<f64> in place.
It is the responsibility of the user to ensure that there are no NaNs etc.