mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-25 05:48:06 +00:00
fixes
This commit is contained in:
@@ -82,14 +82,14 @@ public class Frama : AbstractBase
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
private void UpdateMinMax(double price, ref double high, ref double low)
|
||||
private static void UpdateMinMax(double price, ref double high, ref double low)
|
||||
{
|
||||
high = System.Math.Max(high, price);
|
||||
low = System.Math.Min(low, price);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
private double CalculateAlpha(double dimension)
|
||||
private static double CalculateAlpha(double dimension)
|
||||
{
|
||||
double alpha = System.Math.Exp(-4.6 * (dimension - 1));
|
||||
return System.Math.Clamp(alpha, 0.01, 1.0);
|
||||
|
||||
Reference in New Issue
Block a user