Name
Simple statistics -- a basic structure for computing min, max, average and variance.
Details
struct GtsRange
struct GtsRange {
gdouble min, max, sum, sum2, mean, stddev;
guint n;
}; |
A simple statistics structure.
gts_range_init ()
Initializes a GtsRange.
gts_range_add_value ()
void gts_range_add_value (GtsRange *r,
gdouble val); |
Adds val to r.
gts_range_update ()
Updates the fields of r.
gts_range_reset ()
Sets all the fields of r to 0.
gts_range_print ()
void gts_range_print (GtsRange *r,
FILE *fptr); |
Writes a text representation of r in fptr.