Skip to content

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:

  • TReader Underlying reader type
  • THRESHOLD Threshold value

Public Functions Documentation

function BinarizeGtDecor

Constructs a BinarizeGtDecor .

template<typename... Args>
inline eva::BinarizeGtDecor::BinarizeGtDecor (
    Args... args
) 

Parameters:

  • args Additional 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