/// <summary>Create a best-fit monic for the given points</summary> public static Monic FromLinearRegression(IList <v2> points) { var corr = new Correlation(); foreach (var pt in points) { corr.Add(pt.x, pt.y); } return(corr.LinearRegression); }
private void CountCorreletionInSeries() { for (int i = 0; i < AmountOfElements / 2; i++) { var coef = CountCorreletion(i); Correlation.Add(coef); if (CheckCoefOfCorr(i, coef) == 0) { IsCoefCorrSignificant = false; } } }