This commit is contained in:
Miha Kralj
2024-10-08 13:59:33 -07:00
parent 46f5ffe9e9
commit 0bc41854aa
19 changed files with 48 additions and 218 deletions
-4
View File
@@ -26,11 +26,7 @@ public class Min : AbstractBase
/// <exception cref="ArgumentOutOfRangeException">
/// Thrown when period is less than 1 or decay is negative.
/// </exception>
<<<<<<< HEAD
public Min(int period, double decay = 0) : base()
=======
public Min(int period, double decay = 0)
>>>>>>> dev
{
if (period < 1)
{
-4
View File
@@ -21,11 +21,7 @@ public class Mode : AbstractBase
/// <exception cref="ArgumentOutOfRangeException">
/// Thrown when period is less than 1.
/// </exception>
<<<<<<< HEAD
public Mode(int period) : base()
=======
public Mode(int period)
>>>>>>> dev
{
if (period < 1)
{
-4
View File
@@ -24,11 +24,7 @@ public class Percentile : AbstractBase
/// <exception cref="ArgumentOutOfRangeException">
/// Thrown when period is less than 2 or percent is not between 0 and 100.
/// </exception>
<<<<<<< HEAD
public Percentile(int period, double percent) : base()
=======
public Percentile(int period, double percent)
>>>>>>> dev
{
if (period < 2)
{
-4
View File
@@ -22,11 +22,7 @@ public class Skew : AbstractBase
/// <exception cref="ArgumentOutOfRangeException">
/// Thrown when period is less than 3.
/// </exception>
<<<<<<< HEAD
public Skew(int period) : base()
=======
public Skew(int period)
>>>>>>> dev
{
if (period < 3)
{
-6
View File
@@ -11,7 +11,6 @@ namespace QuanTAlib;
/// </remarks>
public class Stddev : AbstractBase
{
private readonly int Period;
private readonly bool IsPopulation;
private readonly CircularBuffer _buffer;
@@ -26,17 +25,12 @@ public class Stddev : AbstractBase
/// <exception cref="ArgumentOutOfRangeException">
/// Thrown when period is less than 2.
/// </exception>
<<<<<<< HEAD
public Stddev(int period, bool isPopulation = false) : base()
=======
public Stddev(int period, bool isPopulation = false)
>>>>>>> dev
{
if (period < 2)
{
throw new ArgumentOutOfRangeException(nameof(period), "Period must be greater than or equal to 2.");
}
Period = period;
IsPopulation = isPopulation;
WarmupPeriod = 0;
_buffer = new CircularBuffer(period);
-6
View File
@@ -11,7 +11,6 @@ namespace QuanTAlib;
/// </remarks>
public class Variance : AbstractBase
{
private readonly int Period;
private readonly bool IsPopulation;
private readonly CircularBuffer _buffer;
@@ -26,17 +25,12 @@ public class Variance : AbstractBase
/// <exception cref="ArgumentOutOfRangeException">
/// Thrown when period is less than 2.
/// </exception>
<<<<<<< HEAD
public Variance(int period, bool isPopulation = false) : base()
=======
public Variance(int period, bool isPopulation = false)
>>>>>>> dev
{
if (period < 2)
{
throw new ArgumentOutOfRangeException(nameof(period), "Period must be greater than or equal to 2.");
}
Period = period;
IsPopulation = isPopulation;
WarmupPeriod = 0;
_buffer = new CircularBuffer(period);
-4
View File
@@ -21,11 +21,7 @@ public class Zscore : AbstractBase
/// <exception cref="ArgumentOutOfRangeException">
/// Thrown when period is less than 2.
/// </exception>
<<<<<<< HEAD
public Zscore(int period) : base()
=======
public Zscore(int period)
>>>>>>> dev
{
if (period < 2)
{