AGX Dynamics  2.37.2.0
agxUtil::Statistic Class Referenceabstract

Pure virtual statistic class containing the fundamentals for implementing a statistics method. More...

#include <Statistic.h>

+ Inheritance diagram for agxUtil::Statistic:

Public Member Functions

virtual ~Statistic ()
 
virtual agx::Real get () const =0
 
virtual agx::Real update (agx::Real observation)=0
 Updates the statistic given the current observation and returns the current value of this statistic. More...
 

Detailed Description

Pure virtual statistic class containing the fundamentals for implementing a statistics method.

Definition at line 36 of file Statistic.h.

Constructor & Destructor Documentation

◆ ~Statistic()

virtual agxUtil::Statistic::~Statistic ( )
inlinevirtual

Definition at line 51 of file Statistic.h.

Member Function Documentation

◆ get()

virtual agx::Real agxUtil::Statistic::get ( ) const
pure virtual
Returns
the current value of this statistic

Implemented in agxUtil::MedianStatistic, and agxUtil::ExponentialMovingAverageStatistic.

◆ update()

virtual agx::Real agxUtil::Statistic::update ( agx::Real  observation)
pure virtual

Updates the statistic given the current observation and returns the current value of this statistic.

Parameters
observation- the current observation
Returns
the current value of this statistic

Implemented in agxUtil::MedianStatistic, agxUtil::VariableSmoothFactorEMAStatistic, and agxUtil::ExponentialMovingAverageStatistic.


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