Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/08/19 15:55:01 (5 years ago)
Author:
chaider
Message:

#2971 use methodes to operate on IntervalCollection dictionary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionSolution.cs

    r16921 r16927  
    1 #region License Information
     1#region License Information
    22/* HeuristicLab
    33 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     
    179179      var problemData = solution.ProblemData;
    180180      var model = solution.Model;
    181       var variableRanges = problemData.VariableRanges.getIntervals();
     181      var variableRanges = problemData.VariableRanges.GetIntervals();
    182182
    183       intervalEvaluation.VariableIntervals.Add($"Target {problemData.TargetVariable}", new Interval(variableRanges[problemData.TargetVariable].LowerBound, variableRanges[problemData.TargetVariable].UpperBound));
    184       intervalEvaluation.VariableIntervals.Add("Model Interval", interpreter.GetSymbolicExpressionTreeInterval(model.SymbolicExpressionTree, variableRanges));
    185 
     183      intervalEvaluation.AddInterval($"Target {problemData.TargetVariable}", new Interval(variableRanges[problemData.TargetVariable].LowerBound, variableRanges[problemData.TargetVariable].UpperBound));
     184      intervalEvaluation.AddInterval("Model Interval", interpreter.GetSymbolicExpressionTreeInterval(model.SymbolicExpressionTree, variableRanges));
    186185      foreach (var inputVariable in model.VariablesUsedForPrediction.OrderBy(v => v, new NaturalStringComparer())) {
    187186        var derivedModel = DerivativeCalculator.Derive(model.SymbolicExpressionTree, inputVariable);
    188187        var derivedResultInterval = interpreter.GetSymbolicExpressionTreeInterval(derivedModel, variableRanges);
    189188
    190         intervalEvaluation.VariableIntervals.Add(" \u2202f/\u2202" + inputVariable,
     189        intervalEvaluation.AddInterval(" ∂f/∂" + inputVariable,
    191190          new Interval(derivedResultInterval.LowerBound, derivedResultInterval.UpperBound));
    192191      }
Note: See TracChangeset for help on using the changeset viewer.