Skip to content

Class eva::BinarizeLtDecor

template <class TReader, int THRESHOLD>

ClassList > eva > BinarizeLtDecor

Decorator that converts analog reading to binary based on 'less than' threshold condition. More...

  • #include <evaReaderDecors.h>

Inherits the following classes: TReader

Public Functions

Type Name
BinarizeLtDecor (Args... args)
Constructs a BinarizeLtDecor .
signed short getValue ()
Gets binary value based on less than comparison.

Detailed Description

Template parameters:

  • TReader Underlying reader type
  • THRESHOLD Threshold value

Public Functions Documentation

function BinarizeLtDecor

Constructs a BinarizeLtDecor .

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

Parameters:

  • args Additional arguments passed to TReader constructor

function getValue

Gets binary value based on less than comparison.

inline signed short eva::BinarizeLtDecor::getValue () 

Returns:

1 if value <= THRESHOLD, 0 otherwise



The documentation for this class was generated from the following file src/evaReaderDecors.h