Changeset 6732 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisExpressionTreeInterpreter.cs
- Timestamp:
- 09/10/11 15:34:19 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisExpressionTreeInterpreter.cs
r5987 r6732 308 308 double result = Evaluate(dataset, ref row, state); 309 309 for (int i = 1; i < currentInstr.nArguments; i++) { 310 if (result <= 0.0) SkipInstructions(state);310 if (result > 0.0) result = Evaluate(dataset, ref row, state); 311 311 else { 312 result = Evaluate(dataset, ref row,state);312 SkipInstructions(state); 313 313 } 314 314 } 315 return result <= 0.0 ? -1.0 :1.0;315 return result > 0.0 ? 1.0 : -1.0; 316 316 } 317 317 case OpCodes.OR: { 318 318 double result = Evaluate(dataset, ref row, state); 319 319 for (int i = 1; i < currentInstr.nArguments; i++) { 320 if (result > 0.0) SkipInstructions(state);320 if (result <= 0.0) result = Evaluate(dataset, ref row, state); 321 321 else { 322 result = Evaluate(dataset, ref row,state);322 SkipInstructions(state); 323 323 } 324 324 }
Note: See TracChangeset
for help on using the changeset viewer.