Free cookie consent management tool by TermsFeed Policy Generator

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

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

#2665 Added IsNoop to Expression, Made Expressions storable, Fixed Debugger, Fixed and improved problem data and result visualisation, Added custom ErcOption view, Added problem difficulty to problem data name

File size: 904 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(false, 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.