31#ifndef ETL_THRESHOLD_INCLUDED
32#define ETL_THRESHOLD_INCLUDED
46 template<
typename TInput,
typename TCompare = etl::less<TInput> >
54 threshold(TInput threshold_value_, TInput true_value_, TInput false_value_, TCompare compare_ = TCompare())
55 : threshold_value(threshold_value_)
56 , true_value(true_value_)
57 , false_value(false_value_)
65 TInput operator ()(TInput value)
const
67 return compare(value, threshold_value) ? true_value : false_value;
72 const TInput threshold_value;
73 const TInput true_value;
74 const TInput false_value;
Threshold.
Definition: threshold.h:48
bitset_ext
Definition: absolute.h:38
Definition: functional.h:117