private void DrawBasePoints(FittingFunction fittingFunction)
        {
            var points  = new List <Point>();
            var xValues = ChebyshevApproximation.GenerateX(a, b, step);

            for (int i = 0; i < xValues.Length; i++)
            {
                points.Add(new Point(xValues[i], fittingFunction(xValues[i])));
            }

            RealDataPlotFor1.ItemsSource = RealDataPlotFor2.ItemsSource = RealDataPlotFor3.ItemsSource
                                                                              = RealDataPlotFor4.ItemsSource = RealDataPlotFor5.ItemsSource = RealDataPlotFor6.ItemsSource
                                                                                                                                                  = RealDataPlotFor7.ItemsSource = RealDataPlotFor8.ItemsSource = RealDataPlotFor9.ItemsSource
                                                                                                                                                                                                                      = points;
        }
        private void DrawMSE_Func()
        {
            var rank    = ChebyshevApproximation.CalculateRank(a, b, step);
            var xValues = new Libs.Matrix(ChebyshevApproximation.GenerateX(a, b, step));
            var yValues = new Libs.Matrix(new float[rank, 1]);

            for (int j = 0; j < yValues.Height; j++)
            {
                yValues[j, 0] = (float)ApproximatedFunction(xValues[0, j]);
            }

            var coefs = MeanSquaredErrorApproximation.Approximate(xValues, yValues, 1);

            MnkK1Plotter.ItemsSource = GeneratePoints(coefs);

            coefs = MeanSquaredErrorApproximation.Approximate(xValues, yValues, 2);
            MnkK2Plotter.ItemsSource = GeneratePoints(coefs);

            coefs = MeanSquaredErrorApproximation.Approximate(xValues, yValues, 3);
            MnkK3Plotter.ItemsSource = GeneratePoints(coefs);

            coefs = MeanSquaredErrorApproximation.Approximate(xValues, yValues, 4);
            MnkK4Plotter.ItemsSource = GeneratePoints(coefs);

            coefs = MeanSquaredErrorApproximation.Approximate(xValues, yValues, 5);
            MnkK5Plotter.ItemsSource = GeneratePoints(coefs);

            coefs = MeanSquaredErrorApproximation.Approximate(xValues, yValues, 6);
            MnkK6Plotter.ItemsSource = GeneratePoints(coefs);

            coefs = MeanSquaredErrorApproximation.Approximate(xValues, yValues, 7);
            MnkK7Plotter.ItemsSource = GeneratePoints(coefs);

            coefs = MeanSquaredErrorApproximation.Approximate(xValues, yValues, 8);
            MnkK8Plotter.ItemsSource = GeneratePoints(coefs);

            coefs = MeanSquaredErrorApproximation.Approximate(xValues, yValues, 9);
            MnkK9Plotter.ItemsSource = GeneratePoints(coefs);
        }