mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-25 13:58:04 +00:00
[CodeFactor] Apply fixes to commit 0606491
This commit is contained in:
@@ -361,7 +361,7 @@ public class TukeyBiweightTests
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
var bar = gbm.Next(isNew: true);
|
||||
tukey.Update(bar.Close, bar.Close * (1 + (i % 3 - 1) * 0.2));
|
||||
tukey.Update(bar.Close, bar.Close * (1 + (((i % 3) - 1) * 0.2)));
|
||||
Assert.True(tukey.Last.Value >= 0, $"Loss should be non-negative, got {tukey.Last.Value}");
|
||||
Assert.True(tukey.Last.Value <= maxLoss, $"Loss should be <= {maxLoss}, got {tukey.Last.Value}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user