annotate Histogram.h @ 4:83a412f2ef98

Added stdio.h and copy-paste error on FreeDblHist to FreeFloatHist
author Me
date Tue, 02 Nov 2010 16:47:21 -0700
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@2 9 #include "../VMS_primitive_data_types.h"
Me@1 10
Me@1 11 #ifndef _HISTOGRAM_H
Me@1 12 #define _HISTOGRAM_H
Me@1 13
Me@1 14 typedef struct
Me@1 15 {
Me@1 16 int startOfRange;
Me@1 17 int endOfRange;
Me@1 18 int numBins;
Me@1 19 int binWidth;
Me@1 20 int *bins;
Me@1 21 }
Me@1 22 Histogram;
Me@1 23
Me@2 24 typedef struct
Me@2 25 {
Me@2 26 float32 startOfRange;
Me@2 27 float32 endOfRange;
Me@2 28 int numBins;
Me@2 29 float32 binWidth;
Me@2 30 int *bins;
Me@2 31 }
Me@2 32 FloatHist;
Me@2 33
Me@2 34 typedef struct
Me@2 35 {
Me@2 36 float64 startOfRange;
Me@2 37 float64 endOfRange;
Me@2 38 int numBins;
Me@2 39 float64 binWidth;
Me@2 40 int *bins;
Me@2 41 }
Me@2 42 DblHist;
Me@2 43
Me@1 44 Histogram *
Me@1 45 makeHistogram( int numBins, int startOfRange, int endOfRange );
Me@1 46
Me@1 47 void
Me@1 48 addToHist( int value, Histogram *hist );
Me@1 49
Me@1 50 void
Me@1 51 printHist( Histogram *hist );
Me@1 52
Me@2 53 FloatHist *
Me@2 54 makeFloatHistogram( int numBins, float32 startOfRange, float32 binWidth );
Me@2 55
Me@2 56 void
Me@2 57 addToFloatHist( float32 value, FloatHist *hist );
Me@2 58
Me@2 59 void
Me@2 60 printFloatHist( FloatHist *hist );
Me@2 61
Me@2 62
Me@2 63 DblHist *
Me@2 64 makeDblHistogram( int numBins, float64 startOfRange, float64 binWidth );
Me@2 65
Me@2 66 void
Me@2 67 addToDblHist( float64 value, DblHist *hist );
Me@2 68
Me@2 69 void
Me@2 70 printDblHist( DblHist *hist );
Me@2 71
Me@1 72 #endif /* _HISTOGRAM_H */
Me@1 73