void analizeToolStripMenuItem_Click(object sender, EventArgs e) { try { int N; int[] arrF; double[] arrP, arrPC; double[][] matrL; string[] arrC; int[][] arrArrIC; double H; Quality.Clast(matrY, matrLL, arrYMin, arrYMax, clusters, out matrL, out N, out arrF, out arrP, out arrC, out arrArrIC, out arrPC, out H); arrRep[2] = string.Format("Общее количество наблюдений: {0}<br>" + "Количество наблюдений, попавших в рассматриваемую область качества: {1}<br>", matrX.GetLength(0), N); arrRep[3] = Quality.CTable(arrYName, matrL, arrYMin, arrYMax, arrF, arrP); arrRep[4] = Quality.RTable(arrC, arrPC); arrRep[5] = string.Format("H = {0:F3}", H); /*string[] arrG, arrGU; * int[][] arrArrI; * int N, N1; * Quality.SetID(matrY, arrYMin, arrYMax, out arrG, out arrGU, out arrArrI, out N, out N1); * int[] arrIS, arrFreq; * string[] arrGS; * int[][] arrArrIS; * Quality.Sort(arrGU, arrArrI, out arrIS, out arrFreq, out arrGS, out arrArrIS); * string[] arrGC; * double[] arrP, arrP1, arrPM; * int[] arrGFreq; * double H; * Quality.Clustering(arrGS, arrArrIS, N, N1, out arrGC, out arrGFreq, out arrP, out arrP1, out arrPM, out H); * //arrRep[0] = Quality.DataTable(arrXName, arrYName, matrX, matrY, arrG); * arrRep[2] = string.Format("Общее количество наблюдений: {0}<br>" + * "Количество качественных экземпляров: {1}<br>" + * "Количество бракованных экземпляров: {2}", N, N - N1, N1); * arrRep[3] = Quality.GTable(arrGU, arrArrI); * arrRep[4] = Quality.ITable(arrIS, arrYName, arrFreq); * arrRep[5] = Quality.GTable(arrGS, arrArrIS); * arrRep[6] = Quality.PTable(arrGC, arrGFreq, arrP, arrP1, arrPM); * arrRep[7] = Quality.ID2dTable(arrGC, arrP); * arrRep[8] = Quality.ID2dTable(arrGC, arrP1); * arrRep[9] = Quality.ID2dTable(arrGC, arrPM); * arrRep[10] = string.Format("H = {0:F3}", H);*/ } catch { MessageBox.Show("Ошибка анализа"); } }