Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/03/17 01:31:10 (7 years ago)
Author:
pkimmesw
Message:

#2665 Fixed VectorExpression errors, Fixed BenchmarkSuite Problem Data View issues

Location:
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Float/FloatConstantErcValue.cs

    r14898 r14909  
    77  public class FloatConstantErcValue : ConstantsWeightedErcValue<double, DoubleArray> {
    88
    9     public FloatConstantErcValue() : this(new double[0]) { }
     9    public FloatConstantErcValue() : this(false, 1d) { }
    1010
    11     public FloatConstantErcValue(params double[] constants)
    12       : base(new DoubleArray(constants)) {
     11    public FloatConstantErcValue(params double[] constants) : this(true, 1d, constants) { }
     12
     13    public FloatConstantErcValue(bool isEnabled, double weight = 1d, params double[] constants)
     14      : base(isEnabled, new DoubleArray(constants), weight) {
    1315      Name = "Float constants";
    1416    }
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Integer/IntegerConstantErcValue.cs

    r14905 r14909  
    77  public class IntegerConstantErcValue : ConstantsWeightedErcValue<int, IntArray> {
    88
    9     public IntegerConstantErcValue() : this(new int[0]) { }
     9    public IntegerConstantErcValue() : this(false, 1d) { }
    1010
    11     public IntegerConstantErcValue(params int[] constants)
    12       : base(new IntArray(constants)) {
     11    public IntegerConstantErcValue(params int[] constants) : this(true, 1d, constants) { }
     12
     13    public IntegerConstantErcValue(bool isEnabled, double weight = 1d, params int[] constants)
     14      : base(isEnabled, new IntArray(constants), weight) {
    1315      Name = "Integer constants";
    1416    }
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/String/StringRandomErcValue.cs

    r14905 r14909  
    2727    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).";
    2828
    29     public StringRandomErcValue() : base(false, 1d) { }
     29    public StringRandomErcValue() : this(false, 1d) { }
    3030
    3131    public StringRandomErcValue(bool isEnabled, double weight = 1d) : base(isEnabled, weight) {
Note: See TracChangeset for help on using the changeset viewer.