-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlsim.h
37 lines (32 loc) · 1.05 KB
/
lsim.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef LSIM_H
#define LSIM_H
#include "matrix.h"
#include "fstream"
class Lsim
{
private:
Matrix output, input, Phi, A, X, b, PeriodicTime;//Saídas,Entradas,Matriz montada a partir dos dados, coeficientes, Saída simulada
string Model;
public:
Lsim();
void addIO(Matrix in, Matrix out);
friend void addIO(const char *namefile, Lsim Sis);
void modelCoef(Matrix coef);
//Modelos polinomiais
void polyModel(int grau);
void simPoly(int grau);
void polyCoef(int grau);
//Modelos ARX (Auto Recursive with eXogenous output)
void arxModel(int ny, int nu);
void arxModelOneStep(int ny, int nu, int maxNuNy, int line);
Matrix simArxOneStep(int ny, int nu, Matrix ArxPar);
void simArx(int ny, int nu);
void arxCoef(int ny, int nu);
//Modelos de equações diferenciais
void eqdifModel(float h);
void eqdifCoef(float h);
//Retornando a entrada e a saída
Matrix getInput();
Matrix getOutput();
};
#endif // LSIM_H