예제 #1
0
        private void showRungeKuttaGraph()
        {
            int    startPoint = Int32.Parse(StartPointTB.Text);
            int    amount     = Int32.Parse(AmountOfPointsToShowTB.Text);
            String title      = "";

            if (XRadioButton.Checked)
            {
                title = "Runge Kutta for X";
                Plotting_Form2.POINTS_2D =
                    pointsManipulationService.getDesiredOutputForCorrectionGraph(ref points, 0, startPoint, amount);
            }
            else if (YRadioButton.Checked)
            {
                title = "Runge Kutta for Y";
                Plotting_Form2.POINTS_2D =
                    pointsManipulationService.getDesiredOutputForCorrectionGraph(ref points, 1, startPoint, amount);
            }
            else if (ZRadioButton.Checked)
            {
                title = "Runge Kutta for Z";
                Plotting_Form2.POINTS_2D =
                    pointsManipulationService.getDesiredOutputForCorrectionGraph(ref points, 2, startPoint, amount);
            }
            else if (TB3D.Checked)
            {
                title = "Runge Kutta in 3D";
                Debug.WriteLine("Length of points: " + points.Length);
                Plotting_Form2.POINTS_2D =
                    pointsManipulationService.prepareRungeKuttaFor3D(startPoint, amount, ref points);
            }

            Plotting_Form2 plotingForm = new Plotting_Form2();

            plotingForm.Text = title;
            plotingForm.Show();
        }
예제 #2
0
        private void showPerceptronGraph()
        {
            int    startPoint = Int32.Parse(StartPointTB.Text);
            int    amount     = Int32.Parse(AmountOfPointsToShowTB.Text);
            String title      = "";

            if (XRadioButton.Checked)
            {
                title = "Perceptron Graph for X";
                Plotting_Form2.POINTS_2D =
                    pointsManipulationService.getRealOtputForCorrectionGraph(startPoint, amount, resultSPL.xResult, ref points);
            }
            else if (YRadioButton.Checked)
            {
                title = "Perceptron Graph for Y";
                Plotting_Form2.POINTS_2D =
                    pointsManipulationService.getRealOtputForCorrectionGraph(startPoint, amount, resultSPL.yResult, ref points);
            }
            else if (ZRadioButton.Checked)
            {
                title = "Perceptron Graph for Z";
                Plotting_Form2.POINTS_2D =
                    pointsManipulationService.getRealOtputForCorrectionGraph(startPoint, amount, resultSPL.zResult, ref points);
            }
            else if (TB3D.Checked)
            {
                title = "Perceptron in 3D";
                Plotting_Form2.POINTS_2D =
                    pointsManipulationService.prepare3DForPerceptron(startPoint, amount, resultSPL, ref points);
            }

            Plotting_Form2 plotingForm = new Plotting_Form2();

            plotingForm.Text = title;
            plotingForm.Show();
        }