Changeset 15032 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc
- Timestamp:
- 06/12/17 14:11:43 (8 years ago)
- Location:
- branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Boolean/BooleanRandomErc.cs
r14952 r15032 14 14 private const string AllowFalseParameterName = "Allow false"; 15 15 16 public BooleanRandomErc() : this( false, true, true) { }16 public BooleanRandomErc() : this(true, true, true) { } 17 17 18 18 public BooleanRandomErc(bool isEnabled, bool allowTrue, bool allowFalse, double weight = 1d) : base(isEnabled, weight) { -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Float/FloatConstantErc.cs
r14952 r15032 7 7 public class FloatConstantErc : ConstantsWeightedErc<double, DoubleArray> { 8 8 9 public FloatConstantErc() : this( false, 1d) { }9 public FloatConstantErc() : this(true, 1d) { } 10 10 11 11 public FloatConstantErc(params double[] constants) : this(true, 1d, constants) { } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Float/FloatRangeErc.cs
r14952 r15032 10 10 private const string RangeParameterName = "Range"; 11 11 12 public FloatRangeErc() : this( false, 0d, 0d) { }12 public FloatRangeErc() : this(true, 0d, 0d) { } 13 13 14 14 public FloatRangeErc(double start, double end) : this(true, start, end) { } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Integer/IntegerConstantErc.cs
r14952 r15032 7 7 public class IntegerConstantErc : ConstantsWeightedErc<int, IntArray> { 8 8 9 public IntegerConstantErc() : this( false, 1d) { }9 public IntegerConstantErc() : this(true, 1d) { } 10 10 11 11 public IntegerConstantErc(params int[] constants) : this(true, 1d, constants) { } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Integer/IntegerRangeErc.cs
r14952 r15032 10 10 private const string RangeParameterName = "Range"; 11 11 12 public IntegerRangeErc() : this( false, 0, 0) { }12 public IntegerRangeErc() : this(true, 0, 0) { } 13 13 14 14 public IntegerRangeErc(int start, int end) : this(true, start, end) { } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/String/StringConstantErc.cs
r14952 r15032 12 12 private const string ConstantsParameterName = "Constants"; 13 13 14 public StringConstantErc() : this( false, 1d) { }14 public StringConstantErc() : this(true, 1d) { } 15 15 16 16 public StringConstantErc(params string[] constants) : this(true, 1d, constants) { } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/String/StringRandomErc.cs
r15017 r15032 27 27 private const string NewStringProbabilityParameterDescription = "The probability that the selection of the ephemeral random string constant for inclusion in randomly generated code will produce a new string (rather than a string that was previously generated)."; 28 28 29 public StringRandomErc() : this( false, 1d) { }29 public StringRandomErc() : this(true, 1d) { } 30 30 31 31 public StringRandomErc(bool isEnabled, double weight = 1d) : base(isEnabled, weight) { -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/StringVector/StringVectorConstantsErc.cs
r15017 r15032 15 15 private const string ConstantsParameterName = "Constants"; 16 16 17 public StringVectorConstantsErc() : this( false, 1d) { }17 public StringVectorConstantsErc() : this(true, 1d) { } 18 18 public StringVectorConstantsErc(params string[][] arrays) : this(true, 1d, arrays.Select(x => new StringArray(x)).ToArray()) { } 19 19 public StringVectorConstantsErc(params StringArray[] arrays) : this(true, 1d, arrays) { } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Views/ErcOptionsView.cs
r15017 r15032 32 32 double value; 33 33 if (double.TryParse(text, out value)) { 34 possibilityTextBox.Text = (value / 100.0).ToString(PERCENTAGE_FORMAT); 34 if (value > 1) value /= 100.0; 35 possibilityTextBox.Text = value.ToString(PERCENTAGE_FORMAT); 35 36 } else { 36 37 possibilityTextBox.Text = "0%";
Note: See TracChangeset
for help on using the changeset viewer.