mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-15 00:58:04 +00:00
cleanup
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user