>
Simple statisticsGTS Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#include <gts.h> struct GtsRange; void gts_range_init (GtsRange *r); void gts_range_add_value (GtsRange *r, |
Using gts_range_init(), gts_range_add_value() and gts_range_update(), you can easily maintain basic statistics about an ensemble of values.
struct GtsRange { gdouble min, max, sum, sum2, mean, stddev; guint n; }; |
A simple statistics structure.
Minimum value of the population. | |
Maximum value of the population. | |
Average value of the population. | |
Standard deviation of the population. | |
Number of samples in the population. |
void gts_range_add_value (GtsRange *r, |
Adds val to r.
r : | a GtsRange. |
val : | a value to add to r. |