mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-25 13:58:04 +00:00
[CodeFactor] Apply fixes to commit 0606491
This commit is contained in:
@@ -226,7 +226,7 @@ public class AcfValidationTests
|
||||
for (int i = 1; i < n; i++)
|
||||
{
|
||||
double epsilon = Math.Log(bars[i].Close / bars[i - 1].Close) * 0.5; // incremental log-return scaled as noise
|
||||
ar1Data[i] = phi * ar1Data[i - 1] + epsilon;
|
||||
ar1Data[i] = (phi * ar1Data[i - 1]) + epsilon;
|
||||
}
|
||||
|
||||
// Compute ACF at different lags
|
||||
|
||||
Reference in New Issue
Block a user