- Timestamp:
- 09/03/09 15:00:23 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.Boolean/3.3/BooleanTreeInterpreter.cs
r2222 r2328 27 27 using System.Xml; 28 28 using System.Diagnostics; 29 using HeuristicLab.Common; 29 30 using HeuristicLab.Data; 30 31 using HeuristicLab.GP.Interfaces; … … 67 68 var varNode = (VariableFunctionTree)t; 68 69 int index = dataset.GetVariableIndex(varNode.VariableName); 69 return ! IsAlmost(dataset.GetValue(currentRow, index),0.0);70 return !dataset.GetValue(currentRow, index).IsAlmost(0.0); 70 71 } 71 72 case SymbolTable.UNKNOWN: … … 74 75 } 75 76 } 76 77 private bool IsAlmost(double x, double y) {78 return Math.Abs(x - y) < EPSILON;79 }80 77 } 81 78 }
Note: See TracChangeset
for help on using the changeset viewer.