[][src]Module rstats::functions

Structs

GreenIt

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

GreenVec

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

Functions

emsg

helper function for formatting error messages

genvec

Generates a vector of n vectors, each of length d, all filled with random numbers for testing. It needs two seeds s1 and s2. Same seeds will produce the same random sequence.
Uses local closure rand to generate random numbers (avoids dependencies).
Random numbers are in the open interval 0..1 with uniform distribution.

wsum

Sum of linear weights