[CodeFactor] Apply fixes to commit 4a01f03

This commit is contained in:
codefactor-io
2026-03-11 03:35:12 +00:00
parent 4a01f03cb4
commit 567fa89465
63 changed files with 293 additions and 302 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ public sealed class MaeValidationTests : IDisposable
// Build state well past warmup
for (int i = 0; i < 50; i++)
{
ind.Update(100.0 + i * 0.5, 98.0 + i * 0.5);
ind.Update(100.0 + (i * 0.5), 98.0 + (i * 0.5));
}
// Anchor bar
+1 -1
View File
@@ -93,7 +93,7 @@ public sealed class MapeValidationTests : IDisposable
// Build state well past warmup (actual always > 0 so MAPE denominator is valid)
for (int i = 0; i < 50; i++)
{
ind.Update(100.0 + i * 0.5, 98.0 + i * 0.5);
ind.Update(100.0 + (i * 0.5), 98.0 + (i * 0.5));
}
// Anchor bar
+1 -1
View File
@@ -336,7 +336,7 @@ public sealed class Mdae : AbstractBase
}
// Median-of-three pivot selection for better pivot choice
int mid = left + (right - left) / 2;
int mid = left + ((right - left) / 2);
if (span[mid] < span[left])
{
(span[left], span[mid]) = (span[mid], span[left]);
+1 -1
View File
@@ -80,7 +80,7 @@ public sealed class MseValidationTests : IDisposable
// Build state well past warmup
for (int i = 0; i < 50; i++)
{
ind.Update(100.0 + i * 0.5, 98.0 + i * 0.5);
ind.Update(100.0 + (i * 0.5), 98.0 + (i * 0.5));
}
// Anchor bar
+1 -1
View File
@@ -82,7 +82,7 @@ public sealed class RmseValidationTests : IDisposable
// Build state well past warmup
for (int i = 0; i < 50; i++)
{
ind.Update(100.0 + i * 0.5, 98.0 + i * 0.5);
ind.Update(100.0 + (i * 0.5), 98.0 + (i * 0.5));
}
// Anchor bar
@@ -203,7 +203,7 @@ public sealed class RsquaredValidationTests : IDisposable
// Build state well past warmup
for (int i = 0; i < 50; i++)
{
ind.Update(100.0 + i * 0.5, 98.0 + i * 0.5);
ind.Update(100.0 + (i * 0.5), 98.0 + (i * 0.5));
}
// Anchor bar