mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-24 13:38:05 +00:00
[CodeFactor] Apply fixes to commit 0606491
This commit is contained in:
@@ -318,7 +318,7 @@ public class AcfTests
|
||||
// Generate and store values
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
inputs.Add(new TValue(DateTime.UtcNow.AddSeconds(i), 100 + i * 0.5));
|
||||
inputs.Add(new TValue(DateTime.UtcNow.AddSeconds(i), 100 + (i * 0.5)));
|
||||
}
|
||||
|
||||
// First pass
|
||||
|
||||
@@ -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