more volatilty

This commit is contained in:
Miha Kralj
2026-02-02 13:42:47 -08:00
parent dde19f2226
commit a03d7aa0ce
89 changed files with 21551 additions and 438 deletions
+2 -2
View File
@@ -236,7 +236,7 @@ public sealed class Gwma : AbstractBase
return CalculateWeightedSumWarmup(_buffer.GetSpan(), count, _sigma, fallbackValue);
}
if (_invWeightSum == 0.0)
if (Math.Abs(_invWeightSum) <= 0)
{
return fallbackValue;
}
@@ -411,7 +411,7 @@ public sealed class Gwma : AbstractBase
continue;
}
if (invWeightSum == 0.0)
if (Math.Abs(invWeightSum) <= 0)
{
output[i] = val;
continue;