Changeset 5936
- Timestamp:
- 04/03/11 17:02:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisExpressionTreeSimplifier.cs
r5915 r5936 260 260 // simplify expressions x0..xn 261 261 // make sum(x0..xn) / n 262 Trace.Assert(original.Subtrees.Count() > 1);263 262 var sum = original.Subtrees 264 263 .Select(x => GetSimplifiedTree(x)) … … 274 273 // simplify expressions x0..xn 275 274 // make multiplication (x0 * 1/(x1 * x1 * .. * xn)) 276 Trace.Assert(original.Subtrees.Count() > 1);277 275 var simplifiedTrees = original.Subtrees.Select(x => GetSimplifiedTree(x)); 278 276 return … … 285 283 return GetSimplifiedTree(original.GetSubtree(0)); 286 284 } else { 287 Trace.Assert(original.Subtrees.Count() > 1);288 285 return original.Subtrees 289 286 .Select(x => GetSimplifiedTree(x)) … … 298 295 // simplify expressions x0..xn 299 296 // make addition (x0,-x1..-xn) 300 Trace.Assert(original.Subtrees.Count() > 1);301 297 var simplifiedTrees = original.Subtrees.Select(x => GetSimplifiedTree(x)); 302 298 return simplifiedTrees.Take(1) … … 312 308 // simplify expression x0..xn 313 309 // make addition (x0..xn) 314 Trace.Assert(original.Subtrees.Count() > 1);315 310 return original.Subtrees 316 311 .Select(x => GetSimplifiedTree(x))
Note: See TracChangeset
for help on using the changeset viewer.