Summary

A structure that provides simple descriptive statistics on a univariate set of numeric samples.

Constructors

this
this(double[] samples)

Construct a new summary of a sample set.

Members

Functions

toJSON
JSONValue toJSON()

Serialize the summary in JSON format.

Variables

iqr
double iqr;
max
double max;
mean
double mean;
median
double median;
median_abs_dev
double median_abs_dev;
median_abs_dev_pct
double median_abs_dev_pct;
min
double min;

Original rust comment : Note: this method sacrifices performance at the altar of accuracy Depends on IEEE-754 arithmetic guarantees. See proof of correctness at: ["Adaptive Precision Floating-Point Arithmetic and Fast Robust Geometric Predicates"] (http://www.cs.cmu.edu/~quake-papers/robust-arithmetic.ps)

quartiles
Tuple!(double, double, double) quartiles;

Original rust comment : Quartiles of the sample: three values that divide the sample into four equal groups, each with 1/4 of the data. The middle value is the median. See median and percentile. This function may calculate the 3 quartiles more efficiently than 3 calls to percentile, but is otherwise equivalent.

std_dev
double std_dev;
std_dev_pct
double std_dev_pct;

Original rust comment : Note: this method sacrifices performance at the altar of accuracy Depends on IEEE-754 arithmetic guarantees. See proof of correctness at: ["Adaptive Precision Floating-Point Arithmetic and Fast Robust Geometric Predicates"] (http://www.cs.cmu.edu/~quake-papers/robust-arithmetic.ps)

sum
double sum;
var
double var;

Original rust comment : Note: this method sacrifices performance at the altar of accuracy Depends on IEEE-754 arithmetic guarantees. See proof of correctness at: ["Adaptive Precision Floating-Point Arithmetic and Fast Robust Geometric Predicates"] (http://www.cs.cmu.edu/~quake-papers/robust-arithmetic.ps)

Meta