Changeset 4193 for branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Operators/WeightedParentsQualityVarianceComparator.cs
- Timestamp:
- 08/11/10 12:59:53 (14 years ago)
- Location:
- branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Operators/WeightedParentsQualityVarianceComparator.cs
r4131 r4193 125 125 126 126 bool result = false; 127 if (maximization) 128 result = righttail < ConfidenceIntervalParameter.ActualValue.Value; 129 else 130 result = lefttail < ConfidenceIntervalParameter.ActualValue.Value; 127 // reject only if the child is significantly worse 128 if (maximization) { 129 if (bothtails > ConfidenceIntervalParameter.ActualValue.Value) result = true; 130 else if (leftQuality > bestParentQuality) result = true; 131 else result = false; 132 } else { 133 if (bothtails > ConfidenceIntervalParameter.ActualValue.Value) result = true; 134 else if (leftQuality < bestParentQuality) result = true; 135 else result = false; 136 } 131 137 132 138 BoolValue resultValue = ResultParameter.ActualValue; … … 136 142 resultValue.Value = result; 137 143 } 138 139 140 141 144 return base.Apply(); 142 145 }
Note: See TracChangeset
for help on using the changeset viewer.