DUNE: Uniform Navigational Environment  2016.09.0
DUNE::Monitors::DelayedTrigger< T > Class Template Reference

Public Member Functions

 DelayedTrigger (const T &threshold, double time_delay=0.0, unsigned samples=1)
 
 ~DelayedTrigger (void)
 
bool updateAndTest (const T &value)
 

Constructor & Destructor Documentation

template<typename T>
DUNE::Monitors::DelayedTrigger< T >::DelayedTrigger ( const T &  threshold,
double  time_delay = 0.0,
unsigned  samples = 1 
)
inline

Constructor.

Parameters
thresholdlimit over which a detection is supposed to occur
time_delaymaximum period of time the value can be over the threshold
sampleswindow size of the moving average used in the detection algorithm
template<typename T>
DUNE::Monitors::DelayedTrigger< T >::~DelayedTrigger ( void  )
inline

Destructor.

Member Function Documentation

template<typename T>
bool DUNE::Monitors::DelayedTrigger< T >::updateAndTest ( const T &  value)
inline

Update with a new measure and test if and false otherwise.

Parameters
valuenew measure to take into account
Returns
true if a detection occurred, false otherwise

Referenced by DUNE::Monitors::MotorCurrentMonitor< Tc, Tr >::updateAndTest().

Collaboration diagram for DUNE::Monitors::DelayedTrigger< T >:
Collaboration graph