mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-21 12:08:05 +00:00
[CodeFactor] Apply fixes to commit 9697fac
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user