00001
00002
00003
00004
00005
00006
00007
00008 #ifndef LINEARMODEL_H_
00009 #define LINEARMODEL_H_
00010
00011 #include <uvsim/dynamics/Model.h>
00012 #include <boost/numeric/ublas/matrix.hpp>
00013 #include <boost/numeric/ublas/io.hpp>
00014
00015 using namespace boost::numeric::ublas;
00016
00017 namespace uvsim
00018 {
00019
00046 class LinearModel: public Model
00047 {
00048 public:
00049 LinearModel(vector<double> *x, vector<double> *u);
00050 virtual ~LinearModel();
00051 virtual void print();
00052 void size(int m, int n, int p);
00053 matrix<double> Ac, Bc, Ec, Ad, Bd, Ed, C, L;
00054 int n,m,p;
00055 void discretize(double freq, int order);
00056 };
00057
00058 }
00059
00060 #endif
00061
00062