Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Histogram
view Histogram.h @ 5:13b8591dd045
added addInterval -- is old version, have to merge with VMS__malloc version
| author | SeanHalle |
|---|---|
| date | Thu, 11 Nov 2010 05:37:07 -0800 |
| parents | dbb58ebfd690 |
| children | a2388fae93ff |
line source
1 /*
2 * Copyright 2010 OpenSourceStewardshipFoundation.org
3 * Licensed under GNU General Public License version 2
4 *
5 * Author: seanhalle@yahoo.com
6 *
7 */
10 #ifndef _HISTOGRAM_H
11 #define _HISTOGRAM_H
13 typedef struct
14 {
15 int startOfRange;
16 int endOfRange;
17 int numBins;
18 int binWidth;
19 int *bins;
20 }
21 Histogram;
23 Histogram *
24 makeHistogram( int32 numBins, int32 startOfRange, int32 endOfRange );
26 void inline
27 addToHist( int32 value, Histogram *hist );
29 void inline
30 addIntervalToHist( int32 startIntvl, int32 endIntvl, Histogram *hist );
32 void
33 printHist( Histogram *hist );
35 #endif /* _HISTOGRAM_H */
