Changeset bc46c1 for molecuilder/src/analysis_correlation.cpp
- Timestamp:
- Mar 3, 2010, 7:13:43 PM (16 years ago)
- 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. - File:
-
- 1 edited
-
molecuilder/src/analysis_correlation.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/analysis_correlation.cpp
r1c7aed rbc46c1 350 350 }; 351 351 352 /** Returns the startof the bin for a given value.352 /** Returns the index of the bin for a given value. 353 353 * \param value value whose bin to look for 354 354 * \param BinWidth width of bin 355 355 * \param BinStart first bin 356 356 */ 357 doubleGetBin ( 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);357 int 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); 362 362 }; 363 363
Note:
See TracChangeset
for help on using the changeset viewer.
