[][src]Crate rstats

Modules

f64impls
i64impls
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.

MStats

Mean and standard deviation (or std ratio for geometric mean).

Med

Median and quartiles

Traits

MutVectors

Mutable primitive vector operations (for efficiency).

RStats

Implementing basic statistical measures. All these methods operate on only one vector (of data), so they take no arguments.

Vectors

Implementing basic vector algebra and safe geometric median.

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.

sortf

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