Changeset 4329
- Timestamp:
- 08/26/10 12:48:22 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Operators/CovariantParsimonyPressure.cs
r4309 r4329 73 73 public IValueLookupParameter<PercentValue> ComplexityAdaptionParameter { 74 74 get { return (IValueLookupParameter<PercentValue>)Parameters["ComplexityAdaption"]; } 75 } 76 public IValueLookupParameter<BoolValue> InvertComplexityAdaptionParameter { 77 get { return (IValueLookupParameter<BoolValue>)Parameters["InvertComplexityAdaption"]; } 75 78 } 76 79 public IValueLookupParameter<DoubleValue> MinAverageSizeParameter { … … 94 97 Parameters.Add(new ValueLookupParameter<DoubleValue>("MinAverageSize", new DoubleValue(15))); 95 98 Parameters.Add(new LookupParameter<DoubleValue>("C")); 99 Parameters.Add(new ValueLookupParameter<BoolValue>("InvertComplexityAdaption")); 96 100 } 97 101 … … 122 126 if (!Parameters.ContainsKey("C")) { 123 127 Parameters.Add(new LookupParameter<DoubleValue>("C")); 128 } 129 if (!Parameters.ContainsKey("InvertComplexityAdaption")) { 130 Parameters.Add(new ValueLookupParameter<BoolValue>("InvertComplexityAdaption")); 124 131 } 125 132 } … … 157 164 } 158 165 159 double sizeAdaption = lengthMeanCalculator.Mean * ComplexityAdaptionParameter.ActualValue.Value; 166 //double sizeAdaption = lengthMeanCalculator.Mean * ComplexityAdaptionParameter.ActualValue.Value; 167 double sizeAdaption = 100.0 * ComplexityAdaptionParameter.ActualValue.Value; 168 if (InvertComplexityAdaptionParameter.ActualValue != null && InvertComplexityAdaptionParameter.ActualValue.Value) { 169 sizeAdaption = -sizeAdaption; 170 } 160 171 if (lengthMeanCalculator.Mean + sizeAdaption < MinAverageSizeParameter.ActualValue.Value) 161 172 sizeAdaption = 0.0;
Note: See TracChangeset
for help on using the changeset viewer.