Changeset 296798 for molecuilder/src/analysis_correlation.cpp
- Timestamp:
- Mar 3, 2010, 7:17:49 PM (15 years ago)
- Children:
- 1540c8c
- Parents:
- 3d575e (diff), b1c92e (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/analysis_correlation.cpp
r3d575e r296798 353 353 }; 354 354 355 /** Returns the startof the bin for a given value.355 /** Returns the index of the bin for a given value. 356 356 * \param value value whose bin to look for 357 357 * \param BinWidth width of bin 358 358 * \param BinStart first bin 359 359 */ 360 doubleGetBin ( const double value, const double BinWidth, const double BinStart )361 { 362 Info FunctionInfo(__func__); 363 double bin =(double) (floor((value - BinStart)/BinWidth));364 return (bin *BinWidth+BinStart);360 int GetBin ( const double value, const double BinWidth, const double BinStart ) 361 { 362 Info FunctionInfo(__func__); 363 int bin =(int) (floor((value - BinStart)/BinWidth)); 364 return (bin); 365 365 }; 366 366
Note:
See TracChangeset
for help on using the changeset viewer.