Changeset 12663
- Timestamp:
- 07/07/15 18:16:55 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GBT-trunkintegration/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/RegressionTreeModel.cs
r12658 r12663 62 62 var other = (TreeNode)obj; 63 63 return Val.Equals(other.Val) && 64 VarName.Equals(other.VarName) &&65 64 LeftIdx.Equals(other.LeftIdx) && 66 RightIdx.Equals(other.RightIdx); 65 RightIdx.Equals(other.RightIdx) && 66 EqualStrings(VarName, other.VarName); 67 67 } else { 68 68 return false; 69 69 } 70 } 71 72 private bool EqualStrings(string a, string b) { 73 return (a == null && b == null) || 74 (a != null && b != null && a.Equals(b)); 70 75 } 71 76 }
Note: See TracChangeset
for help on using the changeset viewer.