tests and cleanup

This commit is contained in:
Miha Kralj
2024-10-11 18:02:09 -07:00
parent 839313c9f2
commit cc45cebeb4
96 changed files with 3640 additions and 327 deletions
+6 -6
View File
@@ -14,18 +14,18 @@ public class Maaf : AbstractBase
private readonly int _period;
public Maaf(int Period = 39, double Threshold = 0.002)
public Maaf(int period = 39, double threshold = 0.002)
{
_period = Period;
_threshold = Threshold;
_period = period;
_threshold = threshold;
_priceBuffer = new CircularBuffer(4);
_smoothBuffer = new CircularBuffer(Period);
_smoothBuffer = new CircularBuffer(period);
Name = "MAAF";
WarmupPeriod = Period;
WarmupPeriod = period;
Init();
}
public Maaf(object source, int Period = 39, double Threshold = 0.002) : this(Period, Threshold)
public Maaf(object source, int period = 39, double threshold = 0.002) : this(period, threshold)
{
var pubEvent = source.GetType().GetEvent("Pub");
pubEvent?.AddEventHandler(source, new ValueSignal(Sub));