Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/14/12 13:59:47 (12 years ago)
Author:
mkommend
Message:

#1081: Corrected evaluators and time series models.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeInterpreter.cs

    r8436 r8486  
    419419          }
    420420        case OpCodes.Variable: {
    421             if (row < 0 || row >= dataset.Rows)
    422               return double.NaN;
     421            if (row < 0 || row >= dataset.Rows) return double.NaN;
    423422            var variableTreeNode = (VariableTreeNode)currentInstr.dynamicNode;
    424423            return ((IList<double>)currentInstr.iArg0)[row] * variableTreeNode.Weight;
     
    427426            var laggedVariableTreeNode = (LaggedVariableTreeNode)currentInstr.dynamicNode;
    428427            int actualRow = row + laggedVariableTreeNode.Lag;
    429             if (actualRow < 0 || actualRow >= dataset.Rows)
    430               return double.NaN;
     428            if (actualRow < 0 || actualRow >= dataset.Rows) return double.NaN;
    431429            return ((IList<double>)currentInstr.iArg0)[actualRow] * laggedVariableTreeNode.Weight;
    432430          }
     
    439437        //to determine the relative amounts of the true and false branch see http://en.wikipedia.org/wiki/Logistic_function
    440438        case OpCodes.VariableCondition: {
    441             if (row < 0 || row >= dataset.Rows)
    442               return double.NaN;
     439            if (row < 0 || row >= dataset.Rows) return double.NaN;
    443440            var variableConditionTreeNode = (VariableConditionTreeNode)currentInstr.dynamicNode;
    444441            double variableValue = ((IList<double>)currentInstr.iArg0)[row];
Note: See TracChangeset for help on using the changeset viewer.