annotate Histogram.h @ 9:060d63cb5d34

Build process fixes
author Merten Sach <msach@mailbox.tu-berlin.de>
date Wed, 22 Jun 2011 16:47:34 +0200
parents c83c27796fad
children 7a39408f9ea3
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@8 62 void inline
Me@8 63 subIntervalFromHist( int32 startIntvl, int32 endIntvl, Histogram *hist );
Me@8 64
Me@1 65 void
Me@1 66 printHist( Histogram *hist );
Me@1 67
Me@2 68 FloatHist *
Me@2 69 makeFloatHistogram( int numBins, float32 startOfRange, float32 binWidth );
Me@2 70
Me@2 71 void
Me@2 72 addToFloatHist( float32 value, FloatHist *hist );
Me@2 73
Me@2 74 void
Me@2 75 printFloatHist( FloatHist *hist );
Me@2 76
Me@2 77
Me@2 78 DblHist *
Me@2 79 makeDblHistogram( int numBins, float64 startOfRange, float64 binWidth );
Me@2 80
Me@2 81 void
Me@2 82 addToDblHist( float64 value, DblHist *hist );
Me@2 83
Me@2 84 void
Me@2 85 printDblHist( DblHist *hist );
Me@2 86
msach@9 87 void
msach@9 88 freeDblHist( DblHist *hist );
msach@9 89
Me@1 90 #endif /* _HISTOGRAM_H */
Me@1 91