Rev | Line | |
---|
[9139] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
| 6 | using HeuristicLab.Core;
|
---|
| 7 | using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
|
---|
| 8 | using HeuristicLab.Common;
|
---|
| 9 |
|
---|
| 10 | namespace HeuristicLab.Problems.TradeRules
|
---|
| 11 | {
|
---|
| 12 |
|
---|
| 13 | [StorableClass]
|
---|
| 14 | [Item("EMA", "Represents a EMA value.")]
|
---|
| 15 | public class EMA : Symbol
|
---|
| 16 | {
|
---|
| 17 | private const int minimumArity = 1;
|
---|
| 18 | private const int maximumArity = 1;
|
---|
| 19 |
|
---|
| 20 | public override int MinimumArity
|
---|
| 21 | {
|
---|
| 22 | get { return minimumArity; }
|
---|
| 23 | }
|
---|
| 24 | public override int MaximumArity
|
---|
| 25 | {
|
---|
| 26 | get { return maximumArity; }
|
---|
| 27 | }
|
---|
| 28 |
|
---|
| 29 | [StorableConstructor]
|
---|
| 30 | protected EMA(bool deserializing)
|
---|
| 31 | : base(deserializing)
|
---|
| 32 | {
|
---|
| 33 |
|
---|
| 34 | }
|
---|
| 35 | protected EMA(EMA original, Cloner cloner)
|
---|
| 36 | : base(original, cloner)
|
---|
| 37 | {
|
---|
| 38 |
|
---|
| 39 | }
|
---|
| 40 | public EMA() : this("EMA", "Represents a EMA value.") { }
|
---|
| 41 | public EMA(string name, string description)
|
---|
| 42 | : base(name, description)
|
---|
| 43 | {
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | public override IDeepCloneable Clone(Cloner cloner)
|
---|
| 47 | {
|
---|
| 48 | return new EMA(this, cloner);
|
---|
| 49 | }
|
---|
| 50 | }
|
---|
| 51 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.