Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5936


Ignore:
Timestamp:
04/03/11 17:02:13 (14 years ago)
Author:
mkommend
Message:

#1418: Removed asserts from SymbolicDataAnalysisExpressionTreeSimplifier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisExpressionTreeSimplifier.cs

    r5915 r5936  
    260260        // simplify expressions x0..xn
    261261        // make sum(x0..xn) / n
    262         Trace.Assert(original.Subtrees.Count() > 1);
    263262        var sum = original.Subtrees
    264263          .Select(x => GetSimplifiedTree(x))
     
    274273        // simplify expressions x0..xn
    275274        // make multiplication (x0 * 1/(x1 * x1 * .. * xn))
    276         Trace.Assert(original.Subtrees.Count() > 1);
    277275        var simplifiedTrees = original.Subtrees.Select(x => GetSimplifiedTree(x));
    278276        return
     
    285283        return GetSimplifiedTree(original.GetSubtree(0));
    286284      } else {
    287         Trace.Assert(original.Subtrees.Count() > 1);
    288285        return original.Subtrees
    289286          .Select(x => GetSimplifiedTree(x))
     
    298295        // simplify expressions x0..xn
    299296        // make addition (x0,-x1..-xn)
    300         Trace.Assert(original.Subtrees.Count() > 1);
    301297        var simplifiedTrees = original.Subtrees.Select(x => GetSimplifiedTree(x));
    302298        return simplifiedTrees.Take(1)
     
    312308        // simplify expression x0..xn
    313309        // make addition (x0..xn)
    314         Trace.Assert(original.Subtrees.Count() > 1);
    315310        return original.Subtrees
    316311          .Select(x => GetSimplifiedTree(x))
Note: See TracChangeset for help on using the changeset viewer.