Class eva::BinarizeGtDecor¶
template <class TReader, int THRESHOLD>
ClassList > eva > BinarizeGtDecor
Decorator that converts analog reading to binary based on 'greater than' threshold condition. More...
#include <evaReaderDecors.h>
Inherits the following classes: TReader
Public Functions¶
| Type | Name |
|---|---|
| BinarizeGtDecor (Args... args) Constructs a BinarizeGtDecor . |
|
| signed short | getValue () Gets binary value based on greater than comparison. |
Detailed Description¶
Template parameters:
TReaderUnderlying reader typeTHRESHOLDThreshold value
Public Functions Documentation¶
function BinarizeGtDecor¶
Constructs a BinarizeGtDecor .
template<typename... Args>
inline eva::BinarizeGtDecor::BinarizeGtDecor (
Args... args
)
Parameters:
argsAdditional arguments passed to TReader constructor
function getValue¶
Gets binary value based on greater than comparison.
inline signed short eva::BinarizeGtDecor::getValue ()
Returns:
1 if value >= THRESHOLD, 0 otherwise
The documentation for this class was generated from the following file src/evaReaderDecors.h