Merge branch 'dev'

This commit is contained in:
Miha Kralj
2024-09-30 09:07:08 -07:00
95 changed files with 7982 additions and 2375 deletions
+1 -8
View File
@@ -4,8 +4,7 @@ public class Sma : AbstractBase
{
// inherited _index
// inherited _value
public readonly int Period;
private CircularBuffer _buffer;
private readonly CircularBuffer _buffer;
public Sma(int period) : base()
{
@@ -13,7 +12,6 @@ public class Sma : AbstractBase
{
throw new ArgumentOutOfRangeException(nameof(period), "Period must be greater than or equal to 1.");
}
Period = period;
WarmupPeriod = period;
_buffer = new CircularBuffer(period);
Name = "Sma";
@@ -28,11 +26,6 @@ public class Sma : AbstractBase
}
//inhereted public void Sub(object source, in ValueEventArgs args)
public override void Init()
{
base.Init();
}
protected override void ManageState(bool isNew)
{
if (isNew)