Merge branch 'dev'

This commit is contained in:
Miha Kralj
2024-09-24 16:51:46 -07:00
+3 -2
View File
@@ -50,8 +50,9 @@ public class Dsma : AbstractBase
_buffer = new CircularBuffer(period);
// SuperSmoother filter coefficients
_a1 = Math.Exp(-1.414 * Math.PI / (0.5 * period));
_b1 = 2 * _a1 * Math.Cos(1.414 * Math.PI / (0.5 * period));
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;