Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/14/20 12:00:47 (5 years ago)
Author:
chaider
Message:

#2971:

  • Added cube, cuberoot, absolute and analytical quotient to IntervalInterpreter
  • Extended the IsCompatible method in IntervalInterpreter (removed power, root because not implemented in DerivativeCalculator
  • Added checks for known symbols at InteractiveSymbolicDataAnalysisSolutionSimplifierView and SymbolicRegressionSolution
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicDataAnalysisSolutionSimplifierView.cs

    r17501 r17509  
    211211        }
    212212
    213         var regressionProblemData = Content.ProblemData as IRegressionProblemData;
    214         if (regressionProblemData != null) {
    215           var interpreter = new IntervalInterpreter();
    216           var variableRanges = regressionProblemData.VariableRanges.GetIntervals();
    217           IDictionary<ISymbolicExpressionTreeNode, Interval> intervals;
    218           interpreter.GetSymbolicExpressionTreeIntervals(tree, variableRanges, out intervals);
    219           foreach (var kvp in intervals) {
    220             nodeIntervals[kvp.Key] = kvp.Value;
     213        if (IntervalInterpreter.IsCompatible(tree)) {
     214          var regressionProblemData = Content.ProblemData as IRegressionProblemData;
     215          if (regressionProblemData != null) {
     216            var interpreter = new IntervalInterpreter();
     217            var variableRanges = regressionProblemData.VariableRanges.GetIntervals();
     218            IDictionary<ISymbolicExpressionTreeNode, Interval> intervals;
     219            interpreter.GetSymbolicExpressionTreeIntervals(tree, variableRanges, out intervals);
     220            foreach (var kvp in intervals) {
     221              nodeIntervals[kvp.Key] = kvp.Value;
     222            }
    221223          }
    222224        }
Note: See TracChangeset for help on using the changeset viewer.