[CodeFactor] Apply fixes to commit 9697fac

This commit is contained in:
codefactor-io
2026-03-14 05:03:08 +00:00
parent 9697facfb4
commit e35ff7fa3f
164 changed files with 458 additions and 530 deletions
+2 -2
View File
@@ -356,8 +356,8 @@ public sealed class Nma : AbstractBase
double denom = 0;
for (int j = 0; j < bars; j++)
{
int idx0 = ((head - 1 - j) % bufSize + bufSize) % bufSize;
int idx1 = ((head - 2 - j) % bufSize + bufSize) % bufSize;
int idx0 = (((head - 1 - j) % bufSize) + bufSize) % bufSize;
int idx1 = (((head - 2 - j) % bufSize) + bufSize) % bufSize;
double oi = Math.Abs(lnBuf[idx0] - lnBuf[idx1]);
num += oi * sqrtW[j];
denom += oi;