Ignore:
Timestamp:
Mar 3, 2010, 7:13:43 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
b1c92e
Parents:
1c7aed (diff), dd3a80 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'FixGetBin_tointeger' into FixBinDataStartEnd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/analysis_correlation.cpp

    r1c7aed rbc46c1  
    350350};
    351351
    352 /** Returns the start of the bin for a given value.
     352/** Returns the index of the bin for a given value.
    353353 * \param value value whose bin to look for
    354354 * \param BinWidth width of bin
    355355 * \param BinStart first bin
    356356 */
    357 double GetBin ( const double value, const double BinWidth, const double BinStart )
    358 {
    359   Info FunctionInfo(__func__);
    360   double bin =(double) (floor((value - BinStart)/BinWidth));
    361   return (bin*BinWidth+BinStart);
     357int GetBin ( const double value, const double BinWidth, const double BinStart )
     358{
     359  Info FunctionInfo(__func__);
     360  int bin =(int) (floor((value - BinStart)/BinWidth));
     361  return (bin);
    362362};
    363363
Note: See TracChangeset for help on using the changeset viewer.