20 #include <ginac/ginac.h> 43 GiNaC::symbol x0(
"x0"), x1(
"x1"), x2(
"x2"), x3(
"x3"), x4(
"x4"), x5(
"x5");
44 GiNaC::symbol u0(
"u0"), u1(
"u1");
47 GiNaC::matrix f_sym(6,1);
48 f_sym(0,0) = x0*x1+sin(u0);
49 f_sym(1,0) = u1*x3*x2+u0*x0*x3;
56 vector<GiNaC::symbol> x_sym(6);
57 ColumnVector x_num(6);
67 vector<GiNaC::symbol> u_sym(2);
68 ColumnVector u_num(2);
74 ColumnVector mu(6); SymmetricMatrix sigma(6);
76 for (
int index_sigma_rows=0; index_sigma_rows < 6; index_sigma_rows++)
78 for (
int index_sigma_cols=0; index_sigma_cols < 6; index_sigma_cols++)
80 if (index_sigma_cols == index_sigma_rows)
81 sigma(index_sigma_rows+1,index_sigma_cols+1)=
SIGMA;
Class for nonlinear analytic systemmodels with additive gaussian noise.
void testNonLinearAnalyticMeasurementModelGaussianUncertaintyGinac()
Class representing Gaussian (or normal density)
Conditional Gaussian for an analytic nonlinear system using Ginac:
void testNonLinearAnalyticSystemModelGaussianUncertaintyGinac()
CPPUNIT_TEST_SUITE_REGISTRATION(ModelTestGinac)