Changeset 8486 for branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter
- Timestamp:
- 08/14/12 13:59:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeInterpreter.cs
r8436 r8486 419 419 } 420 420 case OpCodes.Variable: { 421 if (row < 0 || row >= dataset.Rows) 422 return double.NaN; 421 if (row < 0 || row >= dataset.Rows) return double.NaN; 423 422 var variableTreeNode = (VariableTreeNode)currentInstr.dynamicNode; 424 423 return ((IList<double>)currentInstr.iArg0)[row] * variableTreeNode.Weight; … … 427 426 var laggedVariableTreeNode = (LaggedVariableTreeNode)currentInstr.dynamicNode; 428 427 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; 431 429 return ((IList<double>)currentInstr.iArg0)[actualRow] * laggedVariableTreeNode.Weight; 432 430 } … … 439 437 //to determine the relative amounts of the true and false branch see http://en.wikipedia.org/wiki/Logistic_function 440 438 case OpCodes.VariableCondition: { 441 if (row < 0 || row >= dataset.Rows) 442 return double.NaN; 439 if (row < 0 || row >= dataset.Rows) return double.NaN; 443 440 var variableConditionTreeNode = (VariableConditionTreeNode)currentInstr.dynamicNode; 444 441 double variableValue = ((IList<double>)currentInstr.iArg0)[row];
Note: See TracChangeset
for help on using the changeset viewer.