[][src]Crate rstats

Modules

f64impls
i64impls
vimpls

Structs

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.

green

green terminal f64 output to make test results stand out.

sortf

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