Free cookie consent management tool by TermsFeed Policy Generator

source: branches/sluengo/EMA.cs @ 9137

Last change on this file since 9137 was 9136, checked in by sluengo, 11 years ago
File size: 1.3 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
6using HeuristicLab.Core;
7using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
8using HeuristicLab.Common;
9
10namespace 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.