Last change
on this file since 17460 was
14952,
checked in by pkimmesw, 8 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:
1.1 KB
|
Line | |
---|
1 | using System.Linq;
|
---|
2 |
|
---|
3 | namespace HeuristicLab.Problems.ProgramSynthesis.Base.Erc.FloatVector {
|
---|
4 | using HeuristicLab.Common;
|
---|
5 | using HeuristicLab.Data;
|
---|
6 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
7 |
|
---|
8 | [StorableClass]
|
---|
9 | public class FloatVectorConstantsErc : VectorConstantsErc<double, DoubleArray> {
|
---|
10 | public FloatVectorConstantsErc() : this(new double[0][]) { }
|
---|
11 |
|
---|
12 | public FloatVectorConstantsErc(params double[][] values)
|
---|
13 | : this(true, 1d, values) {
|
---|
14 | }
|
---|
15 |
|
---|
16 | public FloatVectorConstantsErc(bool isEnabled, double weight = 1d, params double[][] values)
|
---|
17 | : base(isEnabled, weight, values.Select(v => new DoubleArray(v)).ToArray()) {
|
---|
18 | Name = "Float vector constants";
|
---|
19 | }
|
---|
20 |
|
---|
21 | [StorableConstructor]
|
---|
22 | protected FloatVectorConstantsErc(bool deserializing)
|
---|
23 | : base(deserializing) {
|
---|
24 | }
|
---|
25 |
|
---|
26 | public FloatVectorConstantsErc(FloatVectorConstantsErc origin, Cloner cloner)
|
---|
27 | : base(origin, cloner) {
|
---|
28 | }
|
---|
29 |
|
---|
30 | public override IDeepCloneable Clone(Cloner cloner) {
|
---|
31 | return new FloatVectorConstantsErc(this, cloner);
|
---|
32 | }
|
---|
33 | }
|
---|
34 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.