Changeset 8915 for branches/HeuristicLab.TreeSimplifier/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Formatters
- Timestamp:
- 11/15/12 16:47:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TreeSimplifier/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Formatters/SymbolicDataAnalysisExpressionLatexFormatter.cs
r7708 r8915 33 33 [StorableClass] 34 34 public sealed class SymbolicDataAnalysisExpressionLatexFormatter : NamedItem, ISymbolicExpressionTreeStringFormatter { 35 private List<double> constants; 35 private readonly List<double> constants; 36 private int targetCount; 36 37 private int currentLag; 37 38 … … 98 99 } else if (node.Symbol is Division) { 99 100 if (node.SubtreeCount == 1) { 100 strBuilder.Append(@" \cfrac{1 }{");101 strBuilder.Append(@" \cfrac{1"); 101 102 } else { 102 103 strBuilder.Append(@" \cfrac{ "); … … 196 197 strBuilder.Append(invokeNode.Symbol.FunctionName + @" \left( "); 197 198 } else if (node.Symbol is StartSymbol) { 198 strBuilder.Append(" Result& = ");199 strBuilder.Append("target_" + (targetCount++) + "(t) & = "); 199 200 } else if (node.Symbol is Argument) { 200 201 var argSym = node.Symbol as Argument; … … 301 302 strBuilder.Append(" , "); 302 303 } else if (node.Symbol is StartSymbol) { 303 strBuilder.Append(@"\\" + Environment.NewLine + " & "); 304 strBuilder.Append(@"\\" + Environment.NewLine); 305 strBuilder.Append("target_" + (targetCount++) + "(t) & = "); 304 306 } else if (node.Symbol is Power) { 305 307 strBuilder.Append(@"\right) ^ { \operatorname{round} \left(");
Note: See TracChangeset
for help on using the changeset viewer.