Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Histogram
diff Histogram.h @ 0:6e864a0cb520
Initial add
| author | Me |
|---|---|
| date | Sat, 11 Sep 2010 04:41:55 -0700 |
| parents | |
| children | dbb58ebfd690 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Histogram.h Sat Sep 11 04:41:55 2010 -0700 1.3 @@ -0,0 +1,33 @@ 1.4 +/* 1.5 + * Copyright 2010 OpenSourceStewardshipFoundation.org 1.6 + * Licensed under GNU General Public License version 2 1.7 + * 1.8 + * Author: seanhalle@yahoo.com 1.9 + * 1.10 + */ 1.11 + 1.12 + 1.13 +#ifndef _HISTOGRAM_H 1.14 +#define _HISTOGRAM_H 1.15 + 1.16 +typedef struct 1.17 + { 1.18 + int startOfRange; 1.19 + int endOfRange; 1.20 + int numBins; 1.21 + int binWidth; 1.22 + int *bins; 1.23 + } 1.24 +Histogram; 1.25 + 1.26 +Histogram * 1.27 +makeHistogram( int numBins, int startOfRange, int endOfRange ); 1.28 + 1.29 +void 1.30 +addToHist( int value, Histogram *hist ); 1.31 + 1.32 +void 1.33 +printHist( Histogram *hist ); 1.34 + 1.35 +#endif /* _HISTOGRAM_H */ 1.36 +
