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

histo.h File Reference

A simple averaging, SD and histogram-constructing function collection for double data vectors. More...

#include <math.h>

Include dependency graph for histo.h:

Include dependency graph

Go to the source code of this file.

Functions

void avg_sd (double Data[], int Datno, double *Avg, double *Sd)
 avg_sd(Data, Datno, Avg, Sd): returns the average and SD (uncorrected, N-weighted) of a data vector Data[] that is Datno long. More...

void make_hist (double Data[], int Datno, int Binno, double *Low, double *Step, int Bins[])
 make_hist(Data, Datno, Binno, Low, Step, Bins): makes a histogram from an array Data[]. More...


Detailed Description

A simple averaging, SD and histogram-constructing function collection for double data vectors.

Definition in file histo.h.


Function Documentation

void avg_sd ( double Data[],
int Datno,
double * Avg,
double * Sd )
 

avg_sd(Data, Datno, Avg, Sd): returns the average and SD (uncorrected, N-weighted) of a data vector Data[] that is Datno long.

Avg, Sd are not modified if Datno<=0. Sd==1.0 if Datno=1.

void make_hist ( double Data[],
int Datno,
int Binno,
double * Low,
double * Step,
int Bins[] )
 

make_hist(Data, Datno, Binno, Low, Step, Bins): makes a histogram from an array Data[].

The histogram is in Bins[] (number of occurrences), there are always Binno bins which span the range of Data[]. The lowest bin is at Low, the width of the bins is Step.


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