mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-07-27 17:27:43 +00:00
fix exception handling
This commit is contained in:
@@ -41,9 +41,7 @@ public sealed class Efi : AbstractBase
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public Efi(int period = DefaultPeriod)
|
||||
{
|
||||
if (period < 1)
|
||||
throw new ArgumentOutOfRangeException(nameof(period));
|
||||
|
||||
ArgumentOutOfRangeException.ThrowIfLessThan(period, 1);
|
||||
_ema = new(period);
|
||||
WarmupPeriod = period + 1;
|
||||
Name = $"EFI({period})";
|
||||
|
||||
Reference in New Issue
Block a user