Marine systems simulation
CBias.h
1#ifndef CBias_H
2#define CBias_H
3
58#include "SimObject.h"
59
60#include <string>
61
62class CBias : public SimObject
63{
64 public:
66 CBias(std::string sSimObjectName, ISimObjectCreator* pCreator);
67 ~CBias();
68 virtual void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep) { }
69
70 const double* Output(const double T, const double* const X);
71
72
73#ifdef FH_VISUALIZATION
75 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator) { }
76
78 virtual void RenderUpdate(const double T, const double* const X) { }
79#endif
80
81 protected:
82 ISignalPort* m_Input;
83
84 double* m_Signal;
85
86
88 double* m_Bias;
90};
91
92
93#endif
Definition: CBias.h:63
int m_iPortWidth
The width of the input and output ports.
Definition: CBias.h:87
CBias(std::string sSimObjectName, ISimObjectCreator *pCreator)
Constructor.
bool m_ScalarBias
Bool variable.
Definition: CBias.h:89
double * m_Bias
The array with the offset.
Definition: CBias.h:88