private void err() { double srErr = 0; tb.Text = ""; for (int i = 0; i < colum; i++) { double t = 2.5; double[] buf = columArray[i]; double disp = DiscriptiveStatistics.Dispersion(buf); srErr += DiscriptiveStatistics.StandartError(buf); double err = Math.Sqrt(disp / buf.Length); double err2 = t * err; double n = t * t * disp * buf.Length / (err2 * err2 * buf.Length + t * t * disp); tb.Text += i + "\tn = " + n + "\tсред.ош. = " + err + "\tпредел.ош. = " + err2 + "\n"; } srErr /= colum; tb.Text += "\nСредняя ошибка: " + srErr; }
private void output(double[][] arr) { for (int i = 0; i < colum; i++) { string s = ""; string t = ""; s += (i + 1).ToString() + "\n\n"; t += "\t\n\n\n"; s += string.Format("{0:F2}", DiscriptiveStatistics.Average(arr[i])) + "\n\n"; t += "\t\n\n\n"; s += string.Format("{0:F2}", DiscriptiveStatistics.Amount(arr[i])) + "\n\n"; t += "\t\n\n\n"; s += string.Format("{0:F2}", DiscriptiveStatistics.StandartError(arr[i])) + "\n\n"; t += "\t\n\n\n"; s += string.Format("{0:F2}", DiscriptiveStatistics.Median(arr[i])) + "\n\n"; t += "\t\n\n\n"; s += string.Format("{0:F2}", DiscriptiveStatistics.Fashion(arr[i])) + "\n\n"; t += "\t\n\n\n"; s += string.Format("{0:F2}", DiscriptiveStatistics.StandartDeviation(arr[i])) + "\n\n"; t += "\t\n\n\n"; s += string.Format("{0:F2}", DiscriptiveStatistics.Dispersion(arr[i])) + "\n\n"; t += "\t\n\n\n"; s += string.Format("{0:F2}", DiscriptiveStatistics.Excess(arr[i])) + "\n\n"; t += "\t\n\n\n"; s += string.Format("{0:F2}", DiscriptiveStatistics.Asymmetry(arr[i])) + "\n\n"; t += "\t\n\n\n"; s += string.Format("{0:F2}", DiscriptiveStatistics.Interval(arr[i])) + "\n\n"; t += "\t\n\n\n"; s += string.Format("{0:F2}", DiscriptiveStatistics.Min(arr[i])) + "\n\n"; t += "\t\n\n\n"; s += string.Format("{0:F2}", DiscriptiveStatistics.Max(arr[i])) + "\n\n"; t += "\t\n\n\n"; s += string.Format("{0:F2}", arr[i].Length) + "\n\n"; t += "\t\n\n\n"; stpDiscrStat.Children.Add(new TextBlock { Text = s }); stpDiscrStat.Children.Add(new TextBlock { Text = t }); } }