Changeset 15131 for stable/HeuristicLab.Problems.ExternalEvaluation.GP/3.5
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.ExternalEvaluation.GP/3.5/ExternalEvaluationSymbolicExpressionTreeStringFormatter.cs
r14186 r15131 58 58 StringBuilder strBuilder = new StringBuilder(); 59 59 if (Indent) strBuilder.Append(' ', indentLength); 60 if (node.Subtrees. Count() > 0) { // internal node60 if (node.Subtrees.Any()) { // internal node 61 61 strBuilder.Append("("); 62 62 if (node.Symbol is Addition) { … … 103 103 strBuilder.Append(")"); 104 104 } else { 105 if (node is VariableTreeNode) {105 if (node.Symbol is HeuristicLab.Problems.DataAnalysis.Symbolic.Variable) { 106 106 var varNode = node as VariableTreeNode; 107 107 strBuilder.AppendFormat("(* {0} {1})", varNode.VariableName, varNode.Weight.ToString("g17", CultureInfo.InvariantCulture)); 108 } else if (node is ConstantTreeNode) {108 } else if (node.Symbol is Constant) { 109 109 var constNode = node as ConstantTreeNode; 110 110 strBuilder.Append(constNode.Value.ToString("g17", CultureInfo.InvariantCulture));
Note: See TracChangeset
for help on using the changeset viewer.