Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
dynamicgraph::sot::ExpMovingAvg Class Reference

#include <exp-moving-avg.hh>

Inheritance diagram for dynamicgraph::sot::ExpMovingAvg:
Inheritance graph
[legend]

Public Member Functions

 ExpMovingAvg (const std::string &n)
 
void setAlpha (const double &alpha_)
 
virtual ~ExpMovingAvg (void)
 
- Public Member Functions inherited from dynamicgraph::Entity
virtual void display (std::ostream &os) const
 
std::ostream & displaySignalList (std::ostream &os) const
 
 Entity (const std::string &name)
 
virtual const std::string & getClassName () const
 
const std::string & getCommandList () const
 
virtual std::string getDocString () const
 
LoggerVerbosity getLoggerVerbosityLevel ()
 
LoggerVerbosity getLoggerVerbosityLevel ()
 
const std::string & getName () const
 
command::CommandgetNewStyleCommand (const std::string &cmdName)
 
CommandMap_t getNewStyleCommandMap ()
 
SignalBase< sigtime_t > & getSignal (const std::string &signalName)
 
const SignalBase< sigtime_t > & getSignal (const std::string &signalName) const
 
SignalMap getSignalMap () const
 
double getStreamPrintPeriod ()
 
double getStreamPrintPeriod ()
 
double getTimeSample ()
 
double getTimeSample ()
 
bool hasSignal (const std::string &signame) const
 
Loggerlogger ()
 
Loggerlogger ()
 
const Loggerlogger () const
 
const Loggerlogger () const
 
void sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const std::string &lineId="")
 
void sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const std::string &lineId="")
 
void setLoggerVerbosityLevel (LoggerVerbosity lv)
 
void setLoggerVerbosityLevel (LoggerVerbosity lv)
 
bool setStreamPrintPeriod (double t)
 
bool setStreamPrintPeriod (double t)
 
bool setTimeSample (double t)
 
bool setTimeSample (double t)
 
virtual SignalBase< sigtime_t > * test ()
 
virtual void test2 (SignalBase< sigtime_t > *)
 
virtual std::ostream & writeCompletionList (std::ostream &os) const
 
virtual std::ostream & writeGraph (std::ostream &os) const
 
virtual ~Entity ()
 

Public Attributes

SignalTimeDependent< dynamicgraph::Vector, sigtime_taverageSOUT
 
SignalTimeDependent< size_type, sigtime_trefresherSINTERN
 
SignalPtr< dynamicgraph::Vector, sigtime_tupdateSIN
 

Protected Member Functions

dynamicgraph::Vectorupdate (dynamicgraph::Vector &res, const sigtime_t &inTime)
 
- Protected Member Functions inherited from dynamicgraph::Entity
void addCommand (const std::string &name, command::Command *command)
 
void entityDeregistration ()
 
void entityRegistration ()
 
void signalDeregistration (const std::string &name)
 
void signalRegistration (const SignalArray< sigtime_t > &signals)
 

Protected Attributes

double alpha
 
dynamicgraph::Vector average
 
bool init
 
- Protected Attributes inherited from dynamicgraph::Entity
CommandMap_t commandMap
 
Logger logger_
 
std::string name
 
SignalMap signalMap
 

Private Member Functions

 DYNAMIC_GRAPH_ENTITY_DECL ()
 

Additional Inherited Members

- Public Types inherited from dynamicgraph::Entity
typedef std::map< const std::string, command::Command * > CommandMap_t
 
typedef std::map< std::string, SignalBase< sigtime_t > * > SignalMap
 

Detailed Description

Definition at line 33 of file exp-moving-avg.hh.

Constructor & Destructor Documentation

◆ ExpMovingAvg()

dynamicgraph::sot::ExpMovingAvg::ExpMovingAvg ( const std::string &  n)

Definition at line 31 of file exp-moving-avg.cpp.

◆ ~ExpMovingAvg()

dynamicgraph::sot::ExpMovingAvg::~ExpMovingAvg ( void  )
virtual

Definition at line 55 of file exp-moving-avg.cpp.

Member Function Documentation

◆ DYNAMIC_GRAPH_ENTITY_DECL()

dynamicgraph::sot::ExpMovingAvg::DYNAMIC_GRAPH_ENTITY_DECL ( )
private

◆ setAlpha()

void dynamicgraph::sot::ExpMovingAvg::setAlpha ( const double alpha_)

Definition at line 61 of file exp-moving-avg.cpp.

◆ update()

dynamicgraph::Vector & dynamicgraph::sot::ExpMovingAvg::update ( dynamicgraph::Vector res,
const sigtime_t inTime 
)
protected

Definition at line 66 of file exp-moving-avg.cpp.

Member Data Documentation

◆ alpha

double dynamicgraph::sot::ExpMovingAvg::alpha
protected

Definition at line 53 of file exp-moving-avg.hh.

◆ average

dynamicgraph::Vector dynamicgraph::sot::ExpMovingAvg::average
protected

Definition at line 51 of file exp-moving-avg.hh.

◆ averageSOUT

SignalTimeDependent<dynamicgraph::Vector, sigtime_t> dynamicgraph::sot::ExpMovingAvg::averageSOUT

Definition at line 39 of file exp-moving-avg.hh.

◆ init

bool dynamicgraph::sot::ExpMovingAvg::init
protected

Definition at line 54 of file exp-moving-avg.hh.

◆ refresherSINTERN

SignalTimeDependent<size_type, sigtime_t> dynamicgraph::sot::ExpMovingAvg::refresherSINTERN

Definition at line 38 of file exp-moving-avg.hh.

◆ updateSIN

SignalPtr<dynamicgraph::Vector, sigtime_t> dynamicgraph::sot::ExpMovingAvg::updateSIN

Definition at line 37 of file exp-moving-avg.hh.


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


sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:32