Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/08/12 14:04:17 (12 years ago)
Author:
mkommend
Message:

#1081: Intermediate commit of trunk updates - interpreter changes must be redone.

Location:
branches/HeuristicLab.TimeSeries
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.TimeSeries

    • Property svn:ignore
      •  

        old new  
        2020bin
        2121protoc.exe
         22_ReSharper.HeuristicLab.TimeSeries-3.3
  • branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Symbolic

    • Property svn:mergeinfo set to (toggle deleted branches)
      /trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolicmergedeligible
      /branches/Benchmarking/sources/HeuristicLab.Problems.DataAnalysis.Symbolic6917-7005
      /branches/CloningRefactoring/HeuristicLab.Problems.DataAnalysis.Symbolic4656-4721
      /branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic5471-5808
      /branches/DataAnalysis SolutionEnsembles/HeuristicLab.Problems.DataAnalysis.Symbolic5815-6180
      /branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Symbolic4458-4459,​4462,​4464
      /branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic6284-6795
      /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.Problems.DataAnalysis.Symbolic5060
      /branches/NET40/sources/HeuristicLab.Problems.DataAnalysis.Symbolic5138-5162
      /branches/ParallelEngine/HeuristicLab.Problems.DataAnalysis.Symbolic5175-5192
      /branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis.Symbolic7568-7810
      /branches/QAPAlgorithms/HeuristicLab.Problems.DataAnalysis.Symbolic6350-6627
      /branches/Restructure trunk solution/HeuristicLab.Problems.DataAnalysis.Symbolic6828
      /branches/SuccessProgressAnalysis/HeuristicLab.Problems.DataAnalysis.Symbolic5370-5682
      /branches/Trunk/HeuristicLab.Problems.DataAnalysis.Symbolic6829-6865
      /branches/VNS/HeuristicLab.Problems.DataAnalysis.Symbolic5594-5752
      /branches/histogram/HeuristicLab.Problems.DataAnalysis.Symbolic5959-6341
  • branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Formatters/SymbolicDataAnalysisExpressionLatexFormatter.cs

    r7842 r8430  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    5858        StringBuilder strBuilder = new StringBuilder();
    5959        constants.Clear();
    60         targetCount = 1;
    6160        strBuilder.AppendLine(FormatRecursively(symbolicExpressionTree.Root));
    6261        return strBuilder.ToString();
     
    7574        strBuilder.Append(FormatRecursively(node.GetSubtree(0)));
    7675      }
     76      int i = 1;
    7777      foreach (SymbolicExpressionTreeNode subTree in node.Subtrees.Skip(1)) {
    78         FormatSep(node, strBuilder);
     78        FormatSep(node, strBuilder, i);
    7979        // format the whole subtree
    8080        strBuilder.Append(FormatRecursively(subTree));
     81        i++;
    8182      }
    8283
     
    225226    }
    226227
    227     private void FormatSep(ISymbolicExpressionTreeNode node, StringBuilder strBuilder) {
     228    private void FormatSep(ISymbolicExpressionTreeNode node, StringBuilder strBuilder, int step) {
    228229      if (node.Symbol is Addition) {
    229230        strBuilder.Append(" + ");
     
    233234        strBuilder.Append(@" \cdot ");
    234235      } else if (node.Symbol is Division) {
    235         if (node.SubtreeCount <= 2)
    236           strBuilder.Append(@" }{ ");
     236        if (step + 1 == node.SubtreeCount)
     237          strBuilder.Append(@"}{");
    237238        else
    238239          strBuilder.Append(@" }{ \cfrac{ ");
     
    326327      } else if (node.Symbol is Multiplication) {
    327328      } else if (node.Symbol is Division) {
    328         if (node.SubtreeCount == 1 || node.SubtreeCount == 2)
     329        strBuilder.Append(" } ");
     330        for (int i = 2; i < node.SubtreeCount; i++)
    329331          strBuilder.Append(" } ");
    330         else
    331           for (int i = 0; i < node.SubtreeCount; i++) {
    332             strBuilder.Append(" } ");
    333           }
    334332      } else if (node.Symbol is Average) {
    335333        strBuilder.Append(@" \right) ");
Note: See TracChangeset for help on using the changeset viewer.