This commit is contained in:
Miha Kralj
2024-09-24 16:51:11 -07:00
parent 4b25801d52
commit 012458d9d7
+1
View File
@@ -52,6 +52,7 @@ public class Dsma : AbstractBase
// SuperSmoother filter coefficients
double _a1 = Math.Exp(-1.414 * Math.PI / (0.5 * period));
double _b1 = 2 * _a1 * Math.Cos(1.414 * Math.PI / (0.5 * period));
_c2 = _b1;
_c3 = -_a1 * _a1;
_c1 = 1 - _c2 - _c3;