Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push.Base/Erc/Float/FloatConstantErc.cs @ 17511

Last change on this file since 17511 was 15771, checked in by bburlacu, 7 years ago

#2895: Add solution skeleton for PushGP with genealogy analysis.

File size: 887 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis {
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.