Ignore:
Timestamp:
Jan 30, 2010, 7:00:47 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
09ed91, bc46c1
Parents:
14c0f0
Message:

Output....Correlation() don't prepend header line with '#', BinData() changed to just calculate BinEnd by itself.

  • BinData(): If BinEnd < BinStart, BinStart is taken over and just BinEnd calculate by GetMinMax().
  • this is needed for many histograms to be added on top of one another, there we need to have the same bins in each.
  • in all Output..Correlation() functions the '#' was eliminiated as pgfplots does not like it.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/analysis_correlation.cpp

    r14c0f0 r1c7aed  
    370370{
    371371  Info FunctionInfo(__func__);
    372   *file << "# BinStart\tCount" << endl;
     372  *file << "BinStart\tCount" << endl;
    373373  for (BinPairMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) {
    374374    *file << runner->first << "\t" << runner->second << endl;
     
    383383{
    384384  Info FunctionInfo(__func__);
    385   *file << "# BinStart\tAtom1\tAtom2" << endl;
     385  *file << "BinStart\tAtom1\tAtom2" << endl;
    386386  for (PairCorrelationMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) {
    387387    *file << runner->first << "\t" << *(runner->second.first) << "\t" << *(runner->second.second) << endl;
     
    396396{
    397397  Info FunctionInfo(__func__);
    398   *file << "# BinStart\tAtom::x[i]-point.x[i]" << endl;
     398  *file << "BinStart\tAtom::x[i]-point.x[i]" << endl;
    399399  for (CorrelationToPointMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) {
    400400    *file << runner->first;
     
    412412{
    413413  Info FunctionInfo(__func__);
    414   *file << "# BinStart\tTriangle" << endl;
     414  *file << "BinStart\tTriangle" << endl;
    415415  for (CorrelationToSurfaceMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) {
    416416    *file << runner->first << "\t" << *(runner->second.first) << "\t" << *(runner->second.second) << endl;
Note: See TracChangeset for help on using the changeset viewer.