Changeset 1c7aed for molecuilder/src
- Timestamp:
- Jan 30, 2010, 7:00:47 PM (16 years ago)
- Children:
- 09ed91, bc46c1
- Parents:
- 14c0f0
- Location:
- molecuilder/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/analysis_correlation.cpp
r14c0f0 r1c7aed 370 370 { 371 371 Info FunctionInfo(__func__); 372 *file << " #BinStart\tCount" << endl;372 *file << "BinStart\tCount" << endl; 373 373 for (BinPairMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) { 374 374 *file << runner->first << "\t" << runner->second << endl; … … 383 383 { 384 384 Info FunctionInfo(__func__); 385 *file << " #BinStart\tAtom1\tAtom2" << endl;385 *file << "BinStart\tAtom1\tAtom2" << endl; 386 386 for (PairCorrelationMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) { 387 387 *file << runner->first << "\t" << *(runner->second.first) << "\t" << *(runner->second.second) << endl; … … 396 396 { 397 397 Info FunctionInfo(__func__); 398 *file << " #BinStart\tAtom::x[i]-point.x[i]" << endl;398 *file << "BinStart\tAtom::x[i]-point.x[i]" << endl; 399 399 for (CorrelationToPointMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) { 400 400 *file << runner->first; … … 412 412 { 413 413 Info FunctionInfo(__func__); 414 *file << " #BinStart\tTriangle" << endl;414 *file << "BinStart\tTriangle" << endl; 415 415 for (CorrelationToSurfaceMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) { 416 416 *file << runner->first << "\t" << *(runner->second.first) << "\t" << *(runner->second.second) << endl; -
molecuilder/src/analysis_correlation.hpp
r14c0f0 r1c7aed 90 90 /** Puts given correlation data into bins of given size (histogramming). 91 91 * Note that BinStart and BinEnd are desired to fill the complete range, even where Bins are zero. If this is 92 * not desired, give equal BinStart and BinEnd and the map will contain only Bins where the count is one or greater. 92 * not desired, give equal BinStart and BinEnd and the map will contain only Bins where the count is one or greater. If a 93 * certain start value is desired, give BinStart and a BinEnd that is smaller than BinStart, then only BinEnd will be 94 * calculated automatically, i.e. BinStart = 0. and BinEnd = -1. . 93 95 * Also note that the range is given inclusive, i.e. [ BinStart, BinEnd ]. 94 96 * \param *map map of doubles to count … … 114 116 if (BinStart == BinEnd) { // if same, find range ourselves 115 117 GetMinMax( map, start, end); 116 } else { // if not, initialise range to zero 118 } else if (BinEnd < BinStart) { // if BinEnd smaller, just look for new max 119 GetMinMax( map, start, end); 120 start = BinStart; 121 } else { // else take both values 117 122 start = BinStart; 118 123 end = BinEnd;
Note:
See TracChangeset
for help on using the changeset viewer.