Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Float/FloatConstantErc.cs @ 15032

Last change on this file since 15032 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: 903 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Float {
2  using Common;
3  using Data;
4  using Persistence.Default.CompositeSerializers.Storable;
5
6  [StorableClass]
7  public class FloatConstantErc : ConstantsWeightedErc<double, DoubleArray> {
8
9    public FloatConstantErc() : this(true, 1d) { }
10
11    public FloatConstantErc(params double[] constants) : this(true, 1d, constants) { }
12
13    public FloatConstantErc(bool isEnabled, double weight = 1d, params double[] constants)
14      : base(isEnabled, new DoubleArray(constants), weight) {
15    }
16
17    [StorableConstructor]
18    public FloatConstantErc(bool deserializing) : base(deserializing) { }
19
20    public FloatConstantErc(FloatConstantErc origin, Cloner cloner) : base(origin, cloner) {
21    }
22
23    public override IDeepCloneable Clone(Cloner cloner) {
24      return new FloatConstantErc(this, cloner);
25    }
26  }
27}
Note: See TracBrowser for help on using the repository browser.