[CodeFactor] Apply fixes

This commit is contained in:
codefactor-io
2024-11-03 23:59:03 +00:00
parent 16e5a9a392
commit 2b62aaad6c
10 changed files with 8 additions and 17 deletions
+1 -2
View File
@@ -38,7 +38,6 @@ namespace QuanTAlib;
///
/// Note: Returns annualized volatility as a percentage
/// </remarks>
[SkipLocalsInit]
public sealed class Gkv : AbstractBase
{
@@ -97,7 +96,7 @@ public sealed class Gkv : AbstractBase
c = c * c;
// Combine components with optimal weights
double component = 0.5 * u - (2 * _ln2 - 1) * c;
double component = (0.5 * u) - (((2 * _ln2) - 1) * c);
_components.Add(component);
// Need enough values for calculation