RSC  0.17.1
rsc::math::AboveThreshold Class Reference

The AboveThreshold - condition tests whether a given metric of two vectors stays above a given threshold. More...

#include <SequenceMonitor.h>

Inheritance diagram for rsc::math::AboveThreshold:
Inheritance graph
Collaboration diagram for rsc::math::AboveThreshold:
Collaboration graph

Public Member Functions

 AboveThreshold (const MetricPtr m, const double threshold)
 
bool isFulfilled (const double *v1, const double *v2, const unsigned int &dim)
 tests whether two vectors fulfill the AboveThreshold - condition More...
 
- Public Member Functions inherited from rsc::math::MetricCondition
 MetricCondition (MetricPtr m)
 
virtual ~MetricCondition ()
 

Protected Attributes

const double threshold
 
- Protected Attributes inherited from rsc::math::MetricCondition
const MetricPtr metric
 

Detailed Description

The AboveThreshold - condition tests whether a given metric of two vectors stays above a given threshold.

Author
cemmeric

Definition at line 174 of file SequenceMonitor.h.

Constructor & Destructor Documentation

rsc::math::AboveThreshold::AboveThreshold ( const MetricPtr  m,
const double  threshold 
)

Definition at line 73 of file SequenceMonitor.cpp.

Member Function Documentation

bool rsc::math::AboveThreshold::isFulfilled ( const double *  v1,
const double *  v2,
const unsigned int &  dim 
)
virtual

tests whether two vectors fulfill the AboveThreshold - condition

Parameters
v1a vector
v2another vector
dimdimension of both given vectors
Returns
true, if metric(v1, v2) > threshold

Implements rsc::math::MetricCondition.

Definition at line 77 of file SequenceMonitor.cpp.

References rsc::math::MetricCondition::metric, and threshold.

Member Data Documentation

const double rsc::math::AboveThreshold::threshold
protected

Definition at line 190 of file SequenceMonitor.h.

Referenced by isFulfilled().


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