Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

stat2.h File Reference

One- and two-variable statistics. More...

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

Include dependency graph for stat2.h:

Include dependency graph

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.


Detailed Description

One- and two-variable statistics.

Calculates mean, SD and correlation for double-precision data.

Definition in file stat2.h.


Enumeration Type Documentation

enum Statops_
 

The Statops_ symbolic constants control the calculation of the avg, SD, Min, Max for the 1-var statistics.

Enumeration values:
STAT_NOOP  
STAT_AVG  
STAT_SD  
STAT_MIN  
STAT_MAX  

Definition at line 55 of file stat2.h.

enum Stat2ops_
 

The Stat2ops_ symbolic constants control the calculation of the avg's and SD-s for the 2-var statistics.

Enumeration values:
STAT2_NOOP  
STAT2_AVGX  
STAT2_SDX  
STAT2_MINX  
STAT2_MAXX  
STAT2_AVGY  
STAT2_SDY  
STAT2_MINY  
STAT2_MAXY  
STAT2_CORR  

Definition at line 61 of file stat2.h.


Function Documentation

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.


Generated at Wed Aug 21 09:33:30 2002 for The Razorback C Library: Statistics by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001