This commit is contained in:
Miha Kralj
2022-11-14 22:21:07 -08:00
parent aa50badc61
commit 1a5401792d
3 changed files with 116 additions and 118 deletions
+3 -6
View File
@@ -21,17 +21,14 @@ Sources:
public class LINREG_Series : Single_TSeries_Indicator
{
public TSeries Intercept { get; }
public TSeries RSquared { get; }
public TSeries StdDev { get; }
public readonly TSeries Intercept = new();
public readonly TSeries RSquared = new();
public readonly TSeries StdDev = new();
private readonly System.Collections.Generic.List<double> _buffer = new();
public LINREG_Series(TSeries source, int period, bool useNaN = false)
: base(source, period, useNaN)
{
this.Intercept = new();
this.RSquared = new();
this.StdDev = new();
if (this._data.Count > 0) { base.Add(this._data); }
}