Compute Library
 21.02
ThresholdKernelInfo Struct Reference

#include <KernelDescriptors.h>

Public Member Functions

 ThresholdKernelInfo ()=default
 Default constructor. More...
 
 ThresholdKernelInfo (uint8_t threshold, uint8_t false_value, uint8_t true_value, ThresholdType type, uint8_t upper)
 Constructor. More...
 

Data Fields

uint8_t threshold { 0 }
 
uint8_t false_value { 0 }
 
uint8_t true_value { 0 }
 
ThresholdType type { ThresholdType::BINARY }
 
uint8_t upper { 0 }
 

Detailed Description

Definition at line 213 of file KernelDescriptors.h.

Constructor & Destructor Documentation

◆ ThresholdKernelInfo() [1/2]

ThresholdKernelInfo ( )
default

Default constructor.

◆ ThresholdKernelInfo() [2/2]

ThresholdKernelInfo ( uint8_t  threshold,
uint8_t  false_value,
uint8_t  true_value,
ThresholdType  type,
uint8_t  upper 
)
inline

Constructor.

Parameters
[in]thresholdThreshold. When the threshold type is RANGE, this is used as the lower threshold.
[in]false_valuevalue to set when the condition is not respected.
[in]true_valuevalue to set when the condition is respected.
[in]typeThresholding type. Either RANGE or BINARY.
[in]upperUpper threshold. Only used when the thresholding type is RANGE.

Definition at line 225 of file KernelDescriptors.h.

Field Documentation

◆ false_value

uint8_t false_value { 0 }

◆ threshold

uint8_t threshold { 0 }

◆ true_value

uint8_t true_value { 0 }

◆ type

◆ upper

uint8_t upper { 0 }

The documentation for this struct was generated from the following file: