#include <stdio.h>
#include <stdlib.h>
#include <math.h>
Include dependency graph for stat2.h:
Go to the source code of this file.
Compounds | |
struct | Statrec_ |
Statrec_ : stores the sum and squared sum of X. More... | |
struct | Stat2rec_ |
Stat2rec_ : stores the sums and squared sums and the mixed sum of X and Y. More... | |
Enumerations | |
enum | Statops_ { STAT_NOOP = 0, STAT_AVG, STAT_SD, STAT_MIN, STAT_MAX } |
The Statops_ symbolic constants control the calculation of the avg, SD, Min, Max for the 1-var statistics. More... | |
enum | Stat2ops_ { STAT2_NOOP = 0, STAT2_AVGX, STAT2_SDX, STAT2_MINX, STAT2_MAXX, STAT2_AVGY, STAT2_SDY, STAT2_MINY, STAT2_MAXY, STAT2_CORR } |
The Stat2ops_ symbolic constants control the calculation of the avg's and SD-s for the 2-var statistics. More... | |
Functions | |
void | init_stat (Statrec_ *St) |
init_stat(St): initialises the record St. | |
void | add_stat (double X, Statrec_ *St) |
add_stat(X, St): enters the data X into St. | |
double | eval_stat (const Statrec_ *St, Statops_ Op) |
eval_stat(St, Op): returns the average or SD depending on the Op code. | |
void | init_stat2 (Stat2rec_ *St) |
init_stat2(St): initialises the record St. | |
void | add_stat2 (double X, double Y, Stat2rec_ *St) |
add_stat2(X, Y, St): enters the data pair (X,Y) into St. | |
double | eval_stat2 (const Stat2rec_ *St, Stat2ops_ Op) |
eval_stat2(St, Op): returns the average, SD or correlation values depending on the Op code. |
Calculates mean, SD and correlation for double-precision data.
Definition in file stat2.h.
|
The Statops_ symbolic constants control the calculation of the avg, SD, Min, Max for the 1-var statistics.
|
|
The Stat2ops_ symbolic constants control the calculation of the avg's and SD-s for the 2-var statistics.
|
|
init_stat(St): initialises the record St.
|
|
add_stat(X, St): enters the data X into St.
|
|
eval_stat(St, Op): returns the average or SD depending on the Op code.
|
|
init_stat2(St): initialises the record St.
|
|
add_stat2(X, Y, St): enters the data pair (X,Y) into St.
|
|
eval_stat2(St, Op): returns the average, SD or correlation values depending on the Op code.
|