Exemplo n.º 1
0
        // Построить Гиперэксп
        private void button18_Click(object sender, EventArgs e)
        {
            chartGExp.Series.Clear();
            int    size           = Convert.ToInt32(textBox34.Text);
            int    countIntervals = Convert.ToInt32(textBox36.Text);
            Series s = new Series {
                Name = "Испытание"
            };

            countGExpSeries++;

            double[] arr = Algs.GExp(countIntervals, size, listBox6.SelectedIndex);


            // Добавление данных в серию
            for (int i = 0; i < size; i++)
            {
                s.Points.AddXY(arr[i], 1);
            }
            // Добавление серии в гистограмму
            chartGExp.Series.Add(s);
            double interval = (arr.Max() - arr.Min()) / (double)countIntervals;

            chartGExp.DataManipulator.Sort(PointSortOrder.Ascending, "X", "Испытание");
            chartGExp.DataManipulator.Group("Count", interval, IntervalType.Number, "Испытание");
        }