Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Histogram
annotate Histogram.h @ 1:dbb58ebfd690
testing
| author | Me |
|---|---|
| date | Sat, 11 Sep 2010 04:46:29 -0700 |
| parents | 6e864a0cb520 |
| children | 06128e387cfa 13b8591dd045 |
| 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 * |
| Me@1 | 24 makeHistogram( int numBins, int startOfRange, int endOfRange ); |
| Me@1 | 25 |
| Me@1 | 26 void |
| Me@1 | 27 addToHist( int value, Histogram *hist ); |
| Me@1 | 28 |
| Me@1 | 29 void |
| Me@1 | 30 printHist( Histogram *hist ); |
| Me@1 | 31 |
| Me@1 | 32 #endif /* _HISTOGRAM_H */ |
| Me@1 | 33 |
