mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-19 19:18:05 +00:00
[CodeFactor] Apply fixes to commit 9697fac
This commit is contained in:
@@ -89,7 +89,7 @@ public sealed class Tdist : AbstractBase
|
||||
double t2 = t * t;
|
||||
double bx = nuD / Math.FusedMultiplyAdd(1.0, t2, nuD); // ν / (ν + t²)
|
||||
double ibeta = Betadist.IncompleteBeta(bx, nuD * 0.5, 0.5);
|
||||
return t >= 0.0 ? 1.0 - 0.5 * ibeta : 0.5 * ibeta;
|
||||
return t >= 0.0 ? 1.0 - (0.5 * ibeta) : 0.5 * ibeta;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
|
||||
Reference in New Issue
Block a user