Changeset 7305 for trunk/sources
- Timestamp:
- 01/10/12 17:01:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisAlleleFrequencyAnalyzer.cs
r7259 r7305 84 84 if (d == 0) return ""; 85 85 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 } 87 95 for (int i = 0; i < tree.SubtreeCount; i++) { 88 96 builder.Append(" " + GetTextualRepresentationFromSubtreeOfDepth(tree.GetSubtree(i), d - 1));
Note: See TracChangeset
for help on using the changeset viewer.