[CodeFactor] Apply fixes to commit 0606491

This commit is contained in:
codefactor-io
2026-03-12 19:37:50 +00:00
parent 060649192f
commit 8f79257155
384 changed files with 1197 additions and 1215 deletions
@@ -56,16 +56,16 @@ public class SgfValidationTests : IDisposable
double weight = 0;
if (polyOrder == 2)
{
weight = 3.0 * (3.0 * adjPeriod * adjPeriod - 7.0 - 20.0 * k * k);
weight = 3.0 * ((3.0 * adjPeriod * adjPeriod) - 7.0 - (20.0 * k * k));
}
else if (polyOrder == 4)
{
double k2 = k * k;
weight = 15.0 + k2 * (-20.0 + k2 * 6.0);
weight = 15.0 + (k2 * (-20.0 + (k2 * 6.0)));
}
else
{
weight = 1.0 - Math.Abs((double)k) / (double)halfWindow;
weight = 1.0 - (Math.Abs((double)k) / (double)halfWindow);
}
weights[i] = weight;