Free cookie consent management tool by TermsFeed Policy Generator

Changeset 17055


Ignore:
Timestamp:
07/04/19 13:01:33 (5 years ago)
Author:
abeham
Message:

#3001: merged to stable

Location:
stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Problems.DataAnalysis.Symbolic

  • stable/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Formatters/SymbolicDataAnalysisExpressionExcelFormatter.cs

    r15584 r17055  
    120120        stringBuilder.Append(")");
    121121      } else if (symbol is Average) {
    122         stringBuilder.Append("(1/");
     122        stringBuilder.Append("(1/(");
    123123        stringBuilder.Append(node.SubtreeCount);
    124124        stringBuilder.Append(")*(");
     
    129129          stringBuilder.Append(")");
    130130        }
    131         stringBuilder.Append(")");
     131        stringBuilder.Append("))");
    132132      } else if (symbol is Constant) {
    133133        ConstantTreeNode constantTreeNode = node as ConstantTreeNode;
     
    139139      } else if (symbol is Division) {
    140140        if (node.SubtreeCount == 1) {
    141           stringBuilder.Append("1/");
    142           stringBuilder.Append(FormatRecursively(node.GetSubtree(0)));
     141          stringBuilder.Append("1/(");
     142          stringBuilder.Append(FormatRecursively(node.GetSubtree(0)));
     143          stringBuilder.Append(")");
    143144        } else {
    144145          stringBuilder.Append(FormatRecursively(node.GetSubtree(0)));
Note: See TracChangeset for help on using the changeset viewer.