Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Histogram
annotate 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 |
| rev | line source |
|---|---|
| Me@1 | 1 /* |
| Me@1 | 2 * Copyright 2010 OpenSourceStewardshipFoundation.org |
| Me@1 | 3 * Licensed under GNU General Public License version 2 |
| Me@1 | 4 * |
| Me@1 | 5 * Author: seanhalle@yahoo.com |
| Me@1 | 6 * |
| Me@1 | 7 */ |
| Me@1 | 8 |
| Me@1 | 9 |
| Me@1 | 10 #ifndef _HISTOGRAM_H |
| Me@1 | 11 #define _HISTOGRAM_H |
| Me@1 | 12 |
| Me@1 | 13 typedef struct |
| Me@1 | 14 { |
| Me@1 | 15 int startOfRange; |
| Me@1 | 16 int endOfRange; |
| Me@1 | 17 int numBins; |
| Me@1 | 18 int binWidth; |
| Me@1 | 19 int *bins; |
| Me@1 | 20 } |
| Me@1 | 21 Histogram; |
| Me@1 | 22 |
| Me@1 | 23 Histogram * |
| SeanHalle@5 | 24 makeHistogram( int32 numBins, int32 startOfRange, int32 endOfRange ); |
| Me@1 | 25 |
| SeanHalle@5 | 26 void inline |
| SeanHalle@5 | 27 addToHist( int32 value, Histogram *hist ); |
| SeanHalle@5 | 28 |
| SeanHalle@5 | 29 void inline |
| SeanHalle@5 | 30 addIntervalToHist( int32 startIntvl, int32 endIntvl, Histogram *hist ); |
| Me@1 | 31 |
| Me@1 | 32 void |
| Me@1 | 33 printHist( Histogram *hist ); |
| Me@1 | 34 |
| Me@1 | 35 #endif /* _HISTOGRAM_H */ |
| Me@1 | 36 |
