Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Histogram
comparison Histogram.h @ 0:6e864a0cb520
Initial add
| author | Me |
|---|---|
| date | Sat, 11 Sep 2010 04:41:55 -0700 |
| parents | |
| children | dbb58ebfd690 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:1d3fbf248609 |
|---|---|
| 1 /* | |
| 2 * Copyright 2010 OpenSourceStewardshipFoundation.org | |
| 3 * Licensed under GNU General Public License version 2 | |
| 4 * | |
| 5 * Author: seanhalle@yahoo.com | |
| 6 * | |
| 7 */ | |
| 8 | |
| 9 | |
| 10 #ifndef _HISTOGRAM_H | |
| 11 #define _HISTOGRAM_H | |
| 12 | |
| 13 typedef struct | |
| 14 { | |
| 15 int startOfRange; | |
| 16 int endOfRange; | |
| 17 int numBins; | |
| 18 int binWidth; | |
| 19 int *bins; | |
| 20 } | |
| 21 Histogram; | |
| 22 | |
| 23 Histogram * | |
| 24 makeHistogram( int numBins, int startOfRange, int endOfRange ); | |
| 25 | |
| 26 void | |
| 27 addToHist( int value, Histogram *hist ); | |
| 28 | |
| 29 void | |
| 30 printHist( Histogram *hist ); | |
| 31 | |
| 32 #endif /* _HISTOGRAM_H */ | |
| 33 |
