- Timestamp:
- 04/04/17 17:52:44 (8 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.ExternalEvaluation.GP/3.5/ExternalEvaluationSymbolicExpressionTreeStringFormatter.cs
r14185 r14826 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.