[CodeFactor] Apply fixes to commit 0606491

This commit is contained in:
codefactor-io
2026-03-12 19:37:50 +00:00
parent 060649192f
commit 8f79257155
384 changed files with 1197 additions and 1215 deletions
+1 -1
View File
@@ -316,7 +316,7 @@ public class PacfTests
// 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
@@ -115,7 +115,7 @@ public class PacfValidationTests
for (int i = 1; i < 500; i++)
{
double noise = Math.Log(bars[i].Close / bars[i - 1].Close); // i.i.d. incremental return
double newValue = phi * arProcess[^1] + noise;
double newValue = (phi * arProcess[^1]) + noise;
arProcess.Add(newValue);
}
@@ -152,7 +152,7 @@ public class PacfValidationTests
for (int i = 0; i < 100; i++)
{
pacf.Update(new TValue(DateTime.UtcNow.AddSeconds(i), 100.0 + i * 0.5));
pacf.Update(new TValue(DateTime.UtcNow.AddSeconds(i), 100.0 + (i * 0.5)));
}
// Trending series should have high positive PACF at lag 1