This commit is contained in:
Miha Kralj
2024-09-30 08:55:50 -07:00
23 changed files with 32 additions and 387 deletions
+1 -3
View File
@@ -2,7 +2,6 @@ namespace QuanTAlib;
public class Trima : AbstractBase
{
private readonly int _period;
private readonly Convolution _convolution;
public Trima(int period)
@@ -11,8 +10,7 @@ public class Trima : AbstractBase
{
throw new ArgumentException("Period must be greater than or equal to 1.", nameof(period));
}
_period = period;
_convolution = new Convolution(GenerateKernel(_period));
_convolution = new Convolution(GenerateKernel(period));
Name = "Trima";
WarmupPeriod = period;
Init();