#include <math.h>
Include dependency graph for histo.h:
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... |
Definition in file histo.h.
|
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. |
|
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. |