annotate Histogram.h @ 10:7a39408f9ea3

Version 0
author Merten Sach <msach@mailbox.tu-berlin.de>
date Mon, 11 Jul 2011 18:10:52 +0200
parents 060d63cb5d34
children 20410d90dabb
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
msach@10 60 addIntervalToHist( uint32 startIntvl, uint32 endIntvl, Histogram *hist );
Me@1 61
Me@8 62 void inline
Me@8 63 subIntervalFromHist( int32 startIntvl, int32 endIntvl, Histogram *hist );
Me@8 64
Me@1 65 void
msach@10 66 saveHistToFile(Histogram *hist);
msach@10 67
msach@10 68 void
Me@1 69 printHist( Histogram *hist );
Me@1 70
Me@2 71 FloatHist *
Me@2 72 makeFloatHistogram( int numBins, float32 startOfRange, float32 binWidth );
Me@2 73
Me@2 74 void
Me@2 75 addToFloatHist( float32 value, FloatHist *hist );
Me@2 76
Me@2 77 void
Me@2 78 printFloatHist( FloatHist *hist );
Me@2 79
msach@10 80 void
msach@10 81 freeHistExt( Histogram *hist );
msach@10 82
Me@2 83
Me@2 84 DblHist *
Me@2 85 makeDblHistogram( int numBins, float64 startOfRange, float64 binWidth );
Me@2 86
Me@2 87 void
Me@2 88 addToDblHist( float64 value, DblHist *hist );
Me@2 89
Me@2 90 void
Me@2 91 printDblHist( DblHist *hist );
Me@2 92
msach@9 93 void
msach@9 94 freeDblHist( DblHist *hist );
msach@9 95
Me@1 96 #endif /* _HISTOGRAM_H */
Me@1 97