Codacy cleanup

This commit is contained in:
Miha Kralj
2022-11-14 17:38:37 -08:00
parent 6907c3d92d
commit 39bb7b8a91
15 changed files with 563 additions and 476 deletions
+3 -3
View File
@@ -71,11 +71,11 @@ public class LINREG_Series : Single_TSeries_Indicator
double _intercept = avgY - (_slope * avgX);
// calculate Standard Deviation and R-Squared
double stdDevX = Math.Sqrt((double)sumSqX / _len);
double stdDevY = Math.Sqrt((double)sumSqY / _len);
double stdDevX = Math.Sqrt(sumSqX / _len);
double stdDevY = Math.Sqrt(sumSqY / _len);
double _StdDev = stdDevY;
double arrr = (stdDevX * stdDevY != 0) ? (double)sumSqXY / (stdDevX * stdDevY) / _len : 0;
double arrr = (stdDevX * stdDevY != 0) ? sumSqXY / (stdDevX * stdDevY) / _len : 0;
double _RSquared = arrr * arrr;
var ret = (TValue.t, this.Count < this._p - 1 && this._NaN ? double.NaN : _slope);