- Timestamp:
- 08/20/10 17:42:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Operators/CovariantParsimonyPressure.cs
r4271 r4272 89 89 public ILookupParameter<DataTable> QualitiesParameter { 90 90 get { return (ILookupParameter<DataTable>)Parameters["Qualities"]; } 91 } 92 public IValueLookupParameter<DoubleValue> MinAverageSizeParameter { 93 get { return (IValueLookupParameter<DoubleValue>)Parameters["MinAverageSize"]; } 91 94 } 92 95 … … 111 114 Parameters.Add(new LookupParameter<DoubleValue>("Correlation(Length, AdjustedFitness)")); 112 115 Parameters.Add(new LookupParameter<DoubleValue>("Correlation(Fitness, AdjustedFitness)")); 116 Parameters.Add(new ValueLookupParameter<DoubleValue>("MinAverageSize", new DoubleValue(15))); 113 117 } 114 118 … … 151 155 if (!Parameters.ContainsKey("ComplexityAdaption")) { 152 156 Parameters.Add(new ValueLookupParameter<PercentValue>("ComplexityAdaption", new PercentValue(-5))); 157 } 158 if (!Parameters.ContainsKey("MinAverageSize")) { 159 Parameters.Add(new ValueLookupParameter<DoubleValue>("MinAverageSize", new DoubleValue(15))); 153 160 } 154 161 } … … 190 197 else sizeAdaption = Math.Ceiling(sizeAdaption); 191 198 double g = lengthMeanCalculator.Mean + sizeAdaption; 199 if (g < MinAverageSizeParameter.ActualValue.Value) 200 g = MinAverageSizeParameter.ActualValue.Value; 192 201 193 202 // cov(l, f) - (g(t+1) - mu(t)) avgF
Note: See TracChangeset
for help on using the changeset viewer.