annotate Histogram.h @ 7:fa6a281bd854

Nov 14 vers -- add makeFixedBinHist & Ext version & expected value &fxd name bug
author Me
date Sun, 14 Nov 2010 11:11:44 -0800
parents a2388fae93ff
children c83c27796fad
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@7 16 char *name;
Me@7 17 int32 startOfRange;
Me@7 18 int32 endOfRange;
Me@7 19 int32 numBins;
Me@7 20 int32 binWidth;
Me@7 21 int32 *bins;
Me@1 22 }
Me@1 23 Histogram;
Me@1 24
Me@2 25 typedef struct
Me@2 26 {
Me@2 27 float32 startOfRange;
Me@2 28 float32 endOfRange;
Me@7 29 int32 numBins;
Me@2 30 float32 binWidth;
Me@7 31 int32 *bins;
Me@2 32 }
Me@2 33 FloatHist;
Me@2 34
Me@2 35 typedef struct
Me@2 36 {
Me@2 37 float64 startOfRange;
Me@2 38 float64 endOfRange;
Me@7 39 int32 numBins;
Me@2 40 float64 binWidth;
Me@7 41 int32 *bins;
Me@2 42 }
Me@2 43 DblHist;
Me@2 44
Me@1 45 Histogram *
SeanHalle@5 46 makeHistogram( int32 numBins, int32 startOfRange, int32 endOfRange );
Me@1 47
Me@7 48 Histogram *
Me@7 49 makeFixedBinHist( int32 numBins, int32 startOfRange, int32 binWidth,
Me@7 50 char *name );
Me@7 51
Me@7 52 Histogram *
Me@7 53 makeFixedBinHistExt( int32 numBins, int32 startOfRange, int32 binWidth,
Me@7 54 char *name );
Me@7 55
SeanHalle@5 56 void inline
SeanHalle@5 57 addToHist( int32 value, Histogram *hist );
SeanHalle@5 58
SeanHalle@5 59 void inline
SeanHalle@5 60 addIntervalToHist( int32 startIntvl, int32 endIntvl, Histogram *hist );
Me@1 61
Me@1 62 void
Me@1 63 printHist( Histogram *hist );
Me@1 64
Me@2 65 FloatHist *
Me@2 66 makeFloatHistogram( int numBins, float32 startOfRange, float32 binWidth );
Me@2 67
Me@2 68 void
Me@2 69 addToFloatHist( float32 value, FloatHist *hist );
Me@2 70
Me@2 71 void
Me@2 72 printFloatHist( FloatHist *hist );
Me@2 73
Me@2 74
Me@2 75 DblHist *
Me@2 76 makeDblHistogram( int numBins, float64 startOfRange, float64 binWidth );
Me@2 77
Me@2 78 void
Me@2 79 addToDblHist( float64 value, DblHist *hist );
Me@2 80
Me@2 81 void
Me@2 82 printDblHist( DblHist *hist );
Me@2 83
Me@1 84 #endif /* _HISTOGRAM_H */
Me@1 85