Changeset 14259 for branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisExpressionTreeSimplifier.cs
- Timestamp:
- 08/17/16 16:20:08 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisExpressionTreeSimplifier.cs
r14251 r14259 35 35 public class SymbolicDataAnalysisExpressionTreeSimplifier { 36 36 private Addition addSymbol = new Addition(); 37 private Subtraction subSymbol = new Subtraction();38 37 private Multiplication mulSymbol = new Multiplication(); 39 38 private Division divSymbol = new Division(); … … 1034 1033 return a; 1035 1034 } else if (IsConstant(b) && IsAddition(a) || 1036 IsFactor(a) && IsAddition(b) || 1037 IsAddition(b) && IsFactor(a)) { 1035 IsFactor(b) && IsAddition(a)) { 1038 1036 // multiply constants into additions 1039 1037 return a.Subtrees.Select(x => MakeProduct(x, b)).Aggregate((c, d) => MakeSum(c, d));
Note: See TracChangeset
for help on using the changeset viewer.