This commit is contained in:
jl777
2019-04-02 10:47:41 -11:00
parent 6329399497
commit 6d8250fc6a

View File

@@ -2372,7 +2372,7 @@ int64_t komodo_pricesmoothed(int64_t *correlated,int32_t daywindow,int64_t *nonz
sum = den = 0;
for (i=0; i<daywindow; i++)
{
sum += ((daywindow - i) * (correlated[i+iter] + firstprice*9)) / 10;
sum += ((daywindow - i) * (correlated[i+iter] + firstprice*4)) / 5;
den += (daywindow - i);
}
smoothed[iter] = (sum / den);