mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-20 11:38:05 +00:00
[CodeFactor] Apply fixes to commit 9697fac
This commit is contained in:
@@ -109,7 +109,7 @@ public sealed class Hamma : AbstractBase
|
||||
double twoPiOverPm1 = 2.0 * Math.PI / (period - 1);
|
||||
for (int i = 0; i < period; i++)
|
||||
{
|
||||
double w = 0.54 - 0.46 * Math.Cos(twoPiOverPm1 * i);
|
||||
double w = 0.54 - (0.46 * Math.Cos(twoPiOverPm1 * i));
|
||||
weights[i] = w;
|
||||
sum += w;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user