mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-24 21:48:03 +00:00
[CodeFactor] Apply fixes to commit 0606491
This commit is contained in:
@@ -381,7 +381,7 @@ public sealed class InertiaTests
|
||||
var inertia = new Inertia(period: 5);
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
inertia.Update(new TValue(DateTime.UtcNow, 100.0 + i * 2.0));
|
||||
inertia.Update(new TValue(DateTime.UtcNow, 100.0 + (i * 2.0)));
|
||||
}
|
||||
// Perfect linear trend → regression fits perfectly → residual = 0
|
||||
Assert.Equal(0.0, inertia.Last.Value, precision: 10);
|
||||
|
||||
Reference in New Issue
Block a user