// Генерация параметров системы private void GenParam() { Kramer kram = new Kramer(); _param = kram.GetAnswer(A, B); _param.Visual(); }
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); }
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); }