mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-25 13:58:04 +00:00
Afirma + documentation +semver: patch
This commit is contained in:
@@ -12,16 +12,12 @@ public class Rema : AbstractBase
|
||||
public int Period => _period;
|
||||
public double Lambda => _lambda;
|
||||
|
||||
public Rema(int period, double lambda = 0.5)
|
||||
public Rema(int period, double lambda = 0.5) : base()
|
||||
{
|
||||
if (period < 1)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException(nameof(period), "Period must be greater than or equal to 1.");
|
||||
}
|
||||
if (lambda < 0)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException(nameof(lambda), "Lambda must be non-negative.");
|
||||
}
|
||||
|
||||
_period = period;
|
||||
_lambda = lambda;
|
||||
|
||||
Reference in New Issue
Block a user