Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16380


Ignore:
Timestamp:
12/13/18 16:31:52 (5 years ago)
Author:
chaider
Message:

#2966 added variable weight multiplication to the evaluate method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2966_interval_calculation/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/IntervalInterpreter.cs

    r16377 r16380  
    220220        case OpCodes.Variable: {
    221221            intervals.Add(currentInstr.dynamicNode, (Interval)currentInstr.data);
    222             return (Interval)currentInstr.data;
     222            var variableTreeNode = (VariableTreeNode)currentInstr.dynamicNode;
     223            var variableWeight = variableTreeNode.Weight;
     224           
     225            return Interval.Multiply((Interval)currentInstr.data, new Interval(variableWeight, variableWeight));
    223226          }
    224227        case OpCodes.Constant: {
Note: See TracChangeset for help on using the changeset viewer.