9typedef Matrix< std::complex<double>,1,Dynamic> vec_complex;
10typedef Matrix< double,1,Dynamic> vec;
11typedef Matrix< double,Dynamic,Dynamic> mat ;
12typedef Matrix< std::complex<double>,Dynamic,Dynamic> mat_complex ;
18 EIGEN_MAKE_ALIGNED_OPERATOR_NEW;
20 int Fitoption()
const {
return m_Fitoption; }
21 void Fitoption(
int val) { m_Fitoption = val; }
23 bool RelaxedConstraint()
const {
return m_RelaxedConstraint; }
24 void RelaxedConstraint(
bool val) { m_RelaxedConstraint = val; }
25 bool FlipUnstable()
const {
return m_FlipUnstable; }
26 void FlipUnstable(
bool val) { m_FlipUnstable = val; }
27 bool PoleIdentification()
const {
return m_PoleIdentification; }
28 void PoleIdentification(
bool val) { m_PoleIdentification = val; }
29 bool ResidueIdentification()
const {
return m_ResidueIdentification; }
30 void ResidueIdentification(
bool val) { m_ResidueIdentification = val; }
31 bool ComplexStateSpace()
const {
return m_ComplexStateSpace; }
32 void ComplexStateSpace(
bool val) { m_ComplexStateSpace = val; }
34 mat_complex MatrixA()
const {
return matrixA; }
35 void MatrixA(mat_complex val) { matrixA = val; }
36 mat_complex MatrixB()
const {
return matrixB; }
37 void MatrixB(mat_complex val) { matrixB = val; }
38 mat_complex MatrixC()
const {
return matrixC; }
39 void MatrixC(mat_complex val) { matrixC = val; }
40 std::complex<double> MatrixD()
const {
return matrixD; }
41 void MatrixD(std::complex<double> val) { matrixD = val; }
42 std::complex<double> MatrixE()
const {
return matrixE; }
43 void MatrixE(std::complex<double> val) { matrixE = val; }
45 mat MatrixAreal()
const ;
46 mat MatrixBreal()
const ;
47 mat MatrixCreal()
const ;
48 double MatrixDreal()
const ;
49 double MatrixEreal()
const ;
51 mat_complex Diff()
const {
return diff; }
52 double Rmserr()
const {
return rmserr;}
54 void Fit(
const vec_complex &f,
const vec_complex &s, vec_complex &poles,
const vec & weight);
56 vec_complex LinSolveLS( mat &A, mat &B);
57 vec_complex LinSolve( mat &A, mat &B);
58 vec_complex MatrixPolynomial(
const mat_complex &A );
59 vec_complex EigenValues(
const mat_complex &ZER );
61 void QRFactor( mat &A_new, mat &Q, mat &R );
62 void TransferFunction( vec_complex& num, vec_complex &den);
66 bool m_RelaxedConstraint;
68 bool m_PoleIdentification;
69 bool m_ResidueIdentification;
70 bool m_ComplexStateSpace;
78 std::complex<double> matrixD;
79 std::complex<double> matrixE;
80 static bool root_less_pred( std::complex<double>
const& lh, std::complex<double>
const &rh)
82 return lh.real() < rh.real();
Definition: Vectorfit.h:16
Simple waypoint object.
Definition: CableAttach.h:16