[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
+2 -2
View File
@@ -62,7 +62,7 @@ public sealed class ErTests
var er = new Er(period: 10);
for (int i = 0; i < 20; i++)
{
er.Update(new TValue(DateTime.UtcNow, 100.0 + i * 2));
er.Update(new TValue(DateTime.UtcNow, 100.0 + (i * 2)));
}
Assert.True(er.Last.Value > 0.8, "Strongly trending prices should produce high ER");
}
@@ -117,7 +117,7 @@ public sealed class ErTests
double[] data = new double[15];
for (int i = 0; i < data.Length; i++)
{
data[i] = 100 + i * 2;
data[i] = 100 + (i * 2);
}
for (int i = 0; i < data.Length; i++)
@@ -99,7 +99,7 @@ public sealed class ErValidationTests(ITestOutputHelper output)
const int N = 100;
const int period = 10;
double[] prices = new double[N];
for (int i = 0; i < N; i++) { prices[i] = 100.0 + i * 1.0; }
for (int i = 0; i < N; i++) { prices[i] = 100.0 + (i * 1.0); }
var output2 = new double[N];
Er.Batch(prices.AsSpan(), output2.AsSpan(), period);