annotate Histogram.h @ 23:0d2f5b1db610

More progress towards getting common_ancestor working
author Some Random Person <seanhalle@yahoo.com>
date Tue, 13 Mar 2012 18:31:05 -0700
parents 4d9af65ad3df
children 75df4e468930 5d1597d9b24a
rev   line source
Me@14 1 /*
Me@14 2 * Copyright 2010 OpenSourceStewardshipFoundation.org
Me@14 3 * Licensed under GNU General Public License version 2
Me@14 4 *
Me@14 5 * Author: seanhalle@yahoo.com
Me@14 6 *
Me@14 7 */
Me@14 8
seanhalle@21 9 #include "VMS_impl/VMS_primitive_data_types.h"
seanhalle@23 10 #include "VMS_impl/Services_Offered_by_VMS/Memory_Handling/vmalloc.h"
Me@14 11
Me@14 12 #ifndef _HISTOGRAM_H
Me@14 13 #define _HISTOGRAM_H
Me@14 14
Me@14 15 typedef struct
Me@14 16 {
Me@14 17 char *name;
Me@14 18 int32 startOfRange;
Me@14 19 int32 endOfRange;
Me@14 20 int32 numBins;
Me@14 21 int32 binWidth;
Me@14 22 int32 *bins;
Me@14 23 }
Me@14 24 Histogram;
Me@14 25
Me@14 26 typedef struct
Me@14 27 {
Me@14 28 float32 startOfRange;
Me@14 29 float32 endOfRange;
Me@14 30 int32 numBins;
Me@14 31 float32 binWidth;
Me@14 32 int32 *bins;
Me@14 33 }
Me@14 34 FloatHist;
Me@14 35
Me@14 36 typedef struct
Me@14 37 {
Me@14 38 float64 startOfRange;
Me@14 39 float64 endOfRange;
Me@14 40 int32 numBins;
Me@14 41 float64 binWidth;
Me@14 42 int32 *bins;
Me@14 43 }
Me@14 44 DblHist;
Me@14 45
Me@14 46 Histogram *
Me@14 47 makeHistogram( int32 numBins, int32 startOfRange, int32 endOfRange );
Me@14 48
Me@14 49 Histogram *
Me@14 50 makeFixedBinHist( int32 numBins, int32 startOfRange, int32 binWidth,
Me@14 51 char *name );
Me@14 52
Me@14 53 Histogram *
Me@14 54 makeFixedBinHistExt( int32 numBins, int32 startOfRange, int32 binWidth,
Me@14 55 char *name );
Me@14 56
Me@14 57 void inline
Me@14 58 addToHist( int32 value, Histogram *hist );
Me@14 59
Me@14 60 void inline
Me@14 61 addIntervalToHist( uint32 startIntvl, uint32 endIntvl, Histogram *hist );
Me@14 62
Me@14 63 void inline
Me@14 64 subIntervalFromHist( int32 startIntvl, int32 endIntvl, Histogram *hist );
Me@14 65
Me@14 66 void
Me@14 67 saveHistToFile(Histogram *hist);
Me@14 68
Me@14 69 void
Me@14 70 printHist( Histogram *hist );
Me@14 71
Me@14 72 FloatHist *
Me@14 73 makeFloatHistogram( int numBins, float32 startOfRange, float32 binWidth );
Me@14 74
Me@14 75 void
Me@14 76 addToFloatHist( float32 value, FloatHist *hist );
Me@14 77
Me@14 78 void
Me@14 79 printFloatHist( FloatHist *hist );
Me@14 80
Me@14 81 void
Me@14 82 freeHistExt( Histogram *hist );
Me@14 83
Me@14 84 void
Me@14 85 freeHist( Histogram *hist );
Me@14 86
Me@14 87 DblHist *
Me@14 88 makeDblHistogram( int numBins, float64 startOfRange, float64 binWidth );
Me@14 89
Me@14 90 void
Me@14 91 addToDblHist( float64 value, DblHist *hist );
Me@14 92
Me@14 93 void
Me@14 94 printDblHist( DblHist *hist );
Me@14 95
Me@14 96 void
Me@14 97 freeDblHist( DblHist *hist );
Me@14 98
Me@14 99 #endif /* _HISTOGRAM_H */
Me@14 100