Free cookie consent management tool by TermsFeed Policy Generator

source: addons/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Integer/IntegerConstantErc.cs @ 15692

Last change on this file since 15692 was 15032, checked in by pkimmesw, 7 years ago

#2665 Fixed bias 0 issue, PushExpressionFrequencyAnalyzer, Fixed probability for ERC settings, Fixed enable/disable instructions, Added expression descriptions

File size: 901 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer {
2  using Common;
3  using Data;
4  using Persistence.Default.CompositeSerializers.Storable;
5
6  [StorableClass]
7  public class IntegerConstantErc : ConstantsWeightedErc<int, IntArray> {
8
9    public IntegerConstantErc() : this(true, 1d) { }
10
11    public IntegerConstantErc(params int[] constants) : this(true, 1d, constants) { }
12
13    public IntegerConstantErc(bool isEnabled, double weight = 1d, params int[] constants)
14      : base(isEnabled, new IntArray(constants), weight) {
15    }
16
17    [StorableConstructor]
18    public IntegerConstantErc(bool deserializing) : base(deserializing) { }
19
20    public IntegerConstantErc(IntegerConstantErc origin, Cloner cloner) : base(origin, cloner) { }
21
22    public override IDeepCloneable Clone(Cloner cloner) {
23      return new IntegerConstantErc(this, cloner);
24    }
25  }
26}
Note: See TracBrowser for help on using the repository browser.