// Генерация параметров системы
        private void GenParam()
        {
            Kramer kram = new Kramer();

            _param = kram.GetAnswer(A, B);
            _param.Visual();
        }
Ejemplo n.º 2
0
        private void Param()
        {
            A = new Matrix(n, n);

            Vector[] vect = new Vector[n];
            for (int i = 0; i < n; i++)
            {
                vect[i] = ExtensionOfFeatureSpace.GaussRBF(newX[i], newX, sigma);
            }

            for (int i = 0; i < n; i++)
            {
                for (int j = 0; j < n; j++)
                {
                    A[i, j] = vect[i][j];
                }
            }

            Kramer kram = new Kramer();

            param = kram.GetAnswer(A, newY);
        }
Ejemplo n.º 3
0
        private void Param()
        {
            Matrix A = new Matrix(X.N, X.N);

            Vector[] vect = new Vector[X.N];
            for (int i = 0; i < X.N; i++)
            {
                vect[i] = ExtensionOfFeatureSpace.Polinomial(X[i], X.N - 1);
            }

            for (int i = 0; i < X.N; i++)
            {
                for (int j = 0; j < X.N; j++)
                {
                    A[i, j] = vect[i][j];
                }
            }

            Kramer kram = new Kramer();

            param = kram.GetAnswer(A, Y);
        }