using System.Linq; namespace HeuristicLab.Problems.ProgramSynthesis.Base.Erc.FloatVector { using HeuristicLab.Common; using HeuristicLab.Data; using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; [StorableClass] public class FloatVectorConstantsErc : VectorConstantsErc { public FloatVectorConstantsErc() : this(new double[0][]) { } public FloatVectorConstantsErc(params double[][] values) : this(true, 1d, values) { } public FloatVectorConstantsErc(bool isEnabled, double weight = 1d, params double[][] values) : base(isEnabled, weight, values.Select(v => new DoubleArray(v)).ToArray()) { Name = "Float vector constants"; } [StorableConstructor] protected FloatVectorConstantsErc(bool deserializing) : base(deserializing) { } public FloatVectorConstantsErc(FloatVectorConstantsErc origin, Cloner cloner) : base(origin, cloner) { } public override IDeepCloneable Clone(Cloner cloner) { return new FloatVectorConstantsErc(this, cloner); } } }