[][src]Crate rstats

Structs

MStats

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

Med

Median and quartiles

Functions

amean

Arithmetic mean of an i64 slice

ameanstd

Arithmetic mean and standard deviation of an i64 slice

autocorr

(Auto)correlation coefficient of pairs of successive values of (time series) integer variable.

awmean

Linearly weighted arithmetic mean of an i64 slice.
Linearly descending weights from n down to one.
Time dependent data should be in the stack order - the last being the oldest.

awmeanstd

Liearly weighted arithmetic mean and standard deviation of an i64 slice.
Linearly descending weights from n down to one.
Time dependent data should be in the stack order - the last being the oldest.

correlation

Correlation coefficient of a sample of two integer variables.

gmean

Geometric mean of an i64 slice.
The geometric mean is just an exponential of an arithmetic mean of log data (natural logarithms of the data items).
The geometric mean is less sensitive to outliers near maximal value.
Zero valued data is not allowed.

gmeanstd

Geometric mean and std ratio of an i64 slice.
Zero valued data is not allowed.
Std of ln data becomes a ratio after conversion back.

gwmean

Time linearly weighted geometric mean of an i64 slice.
Linearly descending weights from n down to one.
Time dependent data should be in the stack order - the last being the oldest.
The geometric mean is just an exponential of an arithmetic mean of log data (natural logarithms of the data items).
The geometric mean is less sensitive to outliers near maximal value.
Zero data is not allowed - would at best only produce zero result.

gwmeanstd

Linearly weighted version of gmeanstd.

hmean

Harmonic mean of an i64 slice.

hwmean

Linearly weighted harmonic mean of an i64 slice.
Linearly descending weights from n down to one.
Time dependent data should be in the stack order - the last being the oldest.

median

Fast median (avoids sorting).
The data values must be within a moderate range not exceeding u16size (65535).