Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

stats.h File Reference


Detailed Description

Statistics routines.

Author:
Raphael Manfredi
Date:
2004

Go to the source code of this file.

Functions

gpointer statx_make (void)
 Create one-dimension container.

void statx_free (gpointer ox)
 Destroy one-dimension container.

void statx_clear (gpointer ox)
 Clear container.

void statx_add (gpointer ox, gdouble val)
 Add data point to container.

void statx_remove (gpointer ox, gdouble val)
 Remove data point from container.

gint statx_n (gpointer ox)
gdouble statx_avg (gpointer ox)
gdouble statx_sdev (gpointer ox)
gdouble statx_var (gpointer ox)
gdouble * statx_data (gpointer ox)


Function Documentation

void statx_add gpointer  ox,
gdouble  val
 

Add data point to container.

gdouble statx_avg gpointer  ox  ) 
 

Returns:
average of data points.

void statx_clear gpointer  ox  ) 
 

Clear container.

gdouble* statx_data gpointer  ox  ) 
 

Returns:
an array of datapoints which can be freed when done.

void statx_free gpointer  ox  ) 
 

Destroy one-dimension container.

gpointer statx_make void   ) 
 

Create one-dimension container.

gint statx_n gpointer  ox  ) 
 

Returns:
amount of data points.

void statx_remove gpointer  ox,
gdouble  val
 

Remove data point from container.

gdouble statx_sdev gpointer  ox  ) 
 

Returns:
the standard deviation of the data points.

gdouble statx_var gpointer  ox  ) 
 

Returns:
the variance of the data points.


Generated on Sun Feb 12 10:50:08 2006 for Gtk-Gnutella by doxygen 1.3.6