Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7305 for trunk/sources


Ignore:
Timestamp:
01/10/12 17:01:13 (13 years ago)
Author:
gkronber
Message:

#1746 removed constants in alleles considered by the SymbolicDataAnalysisAlleleFrequencyAnalyzer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisAlleleFrequencyAnalyzer.cs

    r7259 r7305  
    8484      if (d == 0) return "";
    8585      StringBuilder builder = new StringBuilder();
    86       builder.Append("(" + tree.ToString());
     86      var varTreeNode = tree as VariableTreeNode;
     87      var constTreeNode = tree as ConstantTreeNode;
     88      if (varTreeNode != null) {
     89        builder.Append("(var " + varTreeNode.VariableName);
     90      } else if (constTreeNode != null) {
     91        builder.Append("(const");
     92      } else {
     93        builder.Append("(" + tree.ToString());
     94      }
    8795      for (int i = 0; i < tree.SubtreeCount; i++) {
    8896        builder.Append(" " + GetTextualRepresentationFromSubtreeOfDepth(tree.GetSubtree(i), d - 1));
Note: See TracChangeset for help on using the changeset viewer.