Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Histogram
comparison FloatHist.c @ 30:0369391d1ff0
Renamed VMS to PR, in new branch
| author | Sean Halle <seanhalle@yahoo.com> |
|---|---|
| date | Mon, 03 Sep 2012 15:08:41 -0700 |
| parents | f4d96eaf374a |
| children | 84601ecae690 |
comparison
equal
deleted
inserted
replaced
| 6:d4e8197ce4f9 | 8:c4b149693c0b |
|---|---|
| 24 makeFloatHistogram( int32 numBins, float32 startOfRange, float32 binWidth ) | 24 makeFloatHistogram( int32 numBins, float32 startOfRange, float32 binWidth ) |
| 25 { | 25 { |
| 26 FloatHist *hist; | 26 FloatHist *hist; |
| 27 int i; | 27 int i; |
| 28 | 28 |
| 29 hist = VMS_int__malloc( sizeof(FloatHist) ); | 29 hist = PR_int__malloc( sizeof(FloatHist) ); |
| 30 hist->bins = VMS_int__malloc( numBins * sizeof(int) ); | 30 hist->bins = PR_int__malloc( numBins * sizeof(int) ); |
| 31 | 31 |
| 32 hist->numBins = numBins; | 32 hist->numBins = numBins; |
| 33 hist->binWidth = binWidth; | 33 hist->binWidth = binWidth; |
| 34 hist->endOfRange = startOfRange + hist->binWidth * numBins; | 34 hist->endOfRange = startOfRange + hist->binWidth * numBins; |
| 35 hist->startOfRange = startOfRange; | 35 hist->startOfRange = startOfRange; |
| 98 | 98 |
| 99 | 99 |
| 100 void | 100 void |
| 101 freeFloatHist( FloatHist *hist ) | 101 freeFloatHist( FloatHist *hist ) |
| 102 { | 102 { |
| 103 VMS_int__free( hist->bins ); | 103 PR_int__free( hist->bins ); |
| 104 VMS_int__free( hist ); | 104 PR_int__free( hist ); |
| 105 } | 105 } |
