Changeset dd3a80 for molecuilder/src/analysis_correlation.cpp
- Timestamp:
- Mar 3, 2010, 7:10:36 PM (16 years ago)
- Children:
- bc46c1
- Parents:
- f78203
- git-author:
- Frederik Heber <heber@…> (03/03/10 18:41:03)
- git-committer:
- Frederik Heber <heber@…> (03/03/10 19:10:36)
- File:
-
- 1 edited
-
molecuilder/src/analysis_correlation.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/analysis_correlation.cpp
rf78203 rdd3a80 342 342 }; 343 343 344 /** Returns the startof the bin for a given value.344 /** Returns the index of the bin for a given value. 345 345 * \param value value whose bin to look for 346 346 * \param BinWidth width of bin 347 347 * \param BinStart first bin 348 348 */ 349 doubleGetBin ( const double value, const double BinWidth, const double BinStart )350 { 351 Info FunctionInfo(__func__); 352 double bin =(double) (floor((value - BinStart)/BinWidth));353 return (bin *BinWidth+BinStart);349 int GetBin ( const double value, const double BinWidth, const double BinStart ) 350 { 351 Info FunctionInfo(__func__); 352 int bin =(int) (floor((value - BinStart)/BinWidth)); 353 return (bin); 354 354 }; 355 355
Note:
See TracChangeset
for help on using the changeset viewer.
