MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
IdentProcess Class Referenceabstract

#include <id.h>

Inheritance diagram for IdentProcess:
Collaboration diagram for IdentProcess:

Public Member Functions

 IdentProcess (unsigned int iOut, unsigned int iIn, unsigned int iA, unsigned int iB)
 
virtual ~IdentProcess (void)
 
void CreateIdent (integer size, integer nout, ForgettingFactor *pf)
 
virtual void Update (const doublereal *pdY, const doublereal *pdU)=0
 
virtual void GetTheta (doublereal *pdTheta)=0
 
virtual void GetErr (doublereal *pdE)
 
virtual doublereal dGetForgettingFactor (void)
 
virtual integer iGetSize (void) const =0
 
integer iGetNumOutput (void) const
 

Protected Attributes

unsigned int iNumOutput
 
unsigned int iNumInput
 
unsigned int iOrdA
 
unsigned int iOrdB
 
IdentpIdent
 

Detailed Description

Definition at line 88 of file id.h.

Constructor & Destructor Documentation

IdentProcess::IdentProcess ( unsigned int  iOut,
unsigned int  iIn,
unsigned int  iA,
unsigned int  iB 
)

Definition at line 167 of file id.cc.

References ASSERT.

169 : iNumOutput(iOut), iNumInput(iIn), iOrdA(iA), iOrdB(iB), pIdent(NULL)
170 {
171  ASSERT(iOut > 0);
172  ASSERT(iIn > 0);
173  // ASSERT(iOrdA >= 0); // = 0 in FIR
174  // ASSERT(iOrdB >= 0); // = 0 in AR
175 }
unsigned int iOrdA
Definition: id.h:92
#define ASSERT(expression)
Definition: colamd.c:977
unsigned int iNumOutput
Definition: id.h:90
Ident * pIdent
Definition: id.h:95
unsigned int iNumInput
Definition: id.h:91
unsigned int iOrdB
Definition: id.h:93
IdentProcess::~IdentProcess ( void  )
virtual

Definition at line 177 of file id.cc.

References pIdent, and SAFEDELETE.

178 {
180 }
Ident * pIdent
Definition: id.h:95
#define SAFEDELETE(pnt)
Definition: mynewmem.h:710

Member Function Documentation

void IdentProcess::CreateIdent ( integer  size,
integer  nout,
ForgettingFactor pf 
)

Definition at line 182 of file id.cc.

References ASSERT, pIdent, and SAFENEWWITHCONSTRUCTOR.

Referenced by IdentARMAXProcess::IdentARMAXProcess(), and IdentARXProcess::IdentARXProcess().

183 {
184  ASSERT(size > 0);
185  ASSERT(nout > 0);
186  ASSERT(pf != NULL);
187 
188  SAFENEWWITHCONSTRUCTOR(pIdent, Ident, Ident(size, nout, pf));
189 }
Definition: id.h:44
#define ASSERT(expression)
Definition: colamd.c:977
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
Ident * pIdent
Definition: id.h:95
virtual doublereal IdentProcess::dGetForgettingFactor ( void  )
inlinevirtual

Definition at line 108 of file id.h.

References ASSERT, Ident::dGetForgettingFactor(), and pIdent.

Referenced by DiscreteIdentProcess_Debug::PutOutput(), and DAC_Process_Debug::PutOutput().

108  {
109  ASSERT(pIdent != NULL);
110  return pIdent->dGetForgettingFactor();
111  };
doublereal dGetForgettingFactor(void) const
Definition: id.cc:95
#define ASSERT(expression)
Definition: colamd.c:977
Ident * pIdent
Definition: id.h:95

Here is the call graph for this function:

void IdentProcess::GetErr ( doublereal pdE)
virtual

Reimplemented in IdentARMAXProcess.

Definition at line 191 of file id.cc.

References NO_OP.

Referenced by DAC_Process_Debug::PutOutput().

192 {
193  NO_OP;
194 }
#define NO_OP
Definition: myassert.h:74
virtual void IdentProcess::GetTheta ( doublereal pdTheta)
pure virtual
integer IdentProcess::iGetNumOutput ( void  ) const
inline

Definition at line 115 of file id.h.

References iNumOutput.

Referenced by DiscreteIdentProcess_Debug::PutOutput(), and DAC_Process_Debug::PutOutput().

115  {
116  return iNumOutput;
117  };
unsigned int iNumOutput
Definition: id.h:90
virtual integer IdentProcess::iGetSize ( void  ) const
pure virtual
virtual void IdentProcess::Update ( const doublereal pdY,
const doublereal pdU 
)
pure virtual

Member Data Documentation

unsigned int IdentProcess::iNumInput
protected

Definition at line 91 of file id.h.

Referenced by IdentARXProcess::Update(), and IdentARMAXProcess::Update().

unsigned int IdentProcess::iNumOutput
protected
unsigned int IdentProcess::iOrdA
protected

Definition at line 92 of file id.h.

Referenced by IdentARXProcess::Update(), and IdentARMAXProcess::Update().

unsigned int IdentProcess::iOrdB
protected

Definition at line 93 of file id.h.

Referenced by IdentARXProcess::Update(), and IdentARMAXProcess::Update().


The documentation for this class was generated from the following files: