mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-13 16:18:05 +00:00
[CodeFactor] Apply fixes to commit 9697fac
This commit is contained in:
@@ -433,7 +433,7 @@ public static class ErrorHelpers
|
||||
double diff = act - pred;
|
||||
double ratio = diff / delta;
|
||||
// δ² * (√(1 + (error/δ)²) - 1)
|
||||
output[i] = deltaSquared * (Math.Sqrt(1.0 + ratio * ratio) - 1.0);
|
||||
output[i] = deltaSquared * (Math.Sqrt(1.0 + (ratio * ratio)) - 1.0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user