mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-16 09:38:05 +00:00
[CodeFactor] Apply fixes to commit 4a01f03
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user