Skip to content

Class eva::QuantizeDecor

template <class TReader, signed short... tLevels>

ClassList > eva > QuantizeDecor

Decorator that quantizes analog readings to discrete levels. More...

  • #include <evaReaderDecors.h>

Inherits the following classes: TReader

Inherited by the following classes: eva::Switch

Public Functions

Type Name
QuantizeDecor (Args... args)
Constructs a QuantizeDecor .
signed short getLevel (unsigned char index)
Gets threshold value for a level.
signed short getValue ()
Gets quantized level index.

Detailed Description

Template parameters:

  • TReader Underlying reader type
  • tLevels Threshold values for each level

Public Functions Documentation

function QuantizeDecor

Constructs a QuantizeDecor .

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

Parameters:

  • args Additional arguments passed to TReader constructor

function getLevel

Gets threshold value for a level.

inline signed short eva::QuantizeDecor::getLevel (
    unsigned char index
) 

Parameters:

  • index Level index

Returns:

Threshold value


function getValue

Gets quantized level index.

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

Returns:

Level index (0 for no input, 1..n for specific levels)



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