private void FillDetermTestGrid(DetermCoef dtrm) { dgvFtest.Rows.Clear(); var row = dgvFtest.Rows.Add(); dgvFtest.Rows[row].Cells["dgvcDetermCoef"].Value = dtrm.Value.ToString("0.####"); dgvFtest.Rows[row].Cells["dgvcStatisticDeterm"].Value = dtrm.Statistic.ToString("0.####"); dgvFtest.Rows[row].Cells["dgvcQuantilFisher"].Value = dtrm.Quantil.ToString("0.####"); dgvFtest.Rows[row].Cells["dgvcIsDetermCoefSignificant"].Value = dtrm.IsSignificant; }
public LinearRegression(List <double> _xData, List <double> _yData, double _alpha) { xData = _xData; yData = _yData; xavg = StatCharacteristicModel.Average.GetAverage(xData); yavg = StatCharacteristicModel.Average.GetAverage(yData); alpha = _alpha; quantil = Quantiles.t_Student(1 - alpha / 2, N - 2); CalculateScores(); DeterminationCoef = new DetermCoef(this, alpha); }