Changeset 12333 for trunk/sources
- Timestamp:
- 04/23/15 13:14:14 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Creators/RandomBinaryVectorCreator.cs
r12012 r12333 34 34 [StorableClass] 35 35 public sealed class RandomBinaryVectorCreator : BinaryVectorCreator { 36 private const string TrueProbabilityParameterName = "TruePro pability";36 private const string TrueProbabilityParameterName = "TrueProbability"; 37 37 38 38 private IValueLookupParameter<DoubleValue> TrueProbabilityParameter { … … 59 59 #region Backwards compatible code, remove with 3.4 60 60 var defaultValue = 0.5; 61 if (Parameters.ContainsKey(TrueProbabilityParameterName) && Parameters[TrueProbabilityParameterName] is IFixedValueParameter<DoubleValue>) { 62 defaultValue = ((IFixedValueParameter<DoubleValue>)Parameters[TrueProbabilityParameterName]).Value.Value; 63 Parameters.Remove(TrueProbabilityParameterName); 61 const string parameterNameWithTypo = "TruePropability"; 62 if (Parameters.ContainsKey(parameterNameWithTypo) && Parameters[parameterNameWithTypo] is IValueParameter<DoubleValue>) { 63 defaultValue = ((IValueParameter<DoubleValue>)Parameters[parameterNameWithTypo]).Value.Value; 64 Parameters.Remove(parameterNameWithTypo); 64 65 } 65 66 if (!Parameters.ContainsKey(TrueProbabilityParameterName))
Note: See TracChangeset
for help on using the changeset viewer.