Changeset 2328 for trunk/sources/HeuristicLab.GP.Boolean/3.3
- Timestamp:
- 09/03/09 15:00:23 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.GP.Boolean/3.3
- Files:
-
- 3 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 } -
trunk/sources/HeuristicLab.GP.Boolean/3.3/HeuristicLab.GP.Boolean-3.3.csproj
r2222 r2328 100 100 </ItemGroup> 101 101 <ItemGroup> 102 <ProjectReference Include="..\..\HeuristicLab.Common\3.2\HeuristicLab.Common-3.2.csproj"> 103 <Project>{1FC004FC-59AF-4249-B1B6-FF25873A20E4}</Project> 104 <Name>HeuristicLab.Common-3.2</Name> 105 </ProjectReference> 102 106 <ProjectReference Include="..\..\HeuristicLab.Core\3.2\HeuristicLab.Core-3.2.csproj"> 103 107 <Project>{F43B59AB-2B8C-4570-BC1E-15592086517C}</Project> -
trunk/sources/HeuristicLab.GP.Boolean/3.3/HeuristicLabGPBooleanPlugin.cs
r2222 r2328 28 28 [ClassInfo(Name = "HeuristicLab.GP.Boolean-3.3")] 29 29 [PluginFile(Filename = "HeuristicLab.GP.Boolean-3.3.dll", Filetype = PluginFileType.Assembly)] 30 [Dependency(Dependency = "HeuristicLab.Common-3.2")] 30 31 [Dependency(Dependency = "HeuristicLab.Core-3.2")] 31 32 [Dependency(Dependency = "HeuristicLab.Data-3.2")]
Note: See TracChangeset
for help on using the changeset viewer.