public static AnovaStatistics ParseAnovaStatistics(object[,] values) { AnovaStatistics retValue = new AnovaStatistics(); object[,] anovaValues = Regression.GetAnovaValues(values); AnovaRowType[] anovaRowTypes = AnovaRow.GetAnovaRowTypes(); int counter = 0; foreach (AnovaRowType rowType in anovaRowTypes) { AnovaRow row = new AnovaRow(rowType); retValue[row.Type] = row; row.DegreesOfFreedom = Convert.ToInt32(anovaValues[counter, 1]); row.SumOfSquares = Convert.ToDouble(anovaValues[counter, 2]); row.MeanSquare = Convert.ToDouble(anovaValues[counter, 3]); row.F = Convert.ToDouble(anovaValues[counter, 4]); row.FSignificance = Convert.ToDouble(anovaValues[counter, 5]); counter++; } return retValue; }
public Regression(Statistics statistics, AnovaStatistics anova, CoefficentStatistics coefficients) { this.Statistics = statistics; this.Anova = anova; this.Coefficients = coefficients; }