sigma  1.0.0
Loading...
Searching...
No Matches
sigma::ThresholdedAffine< ValueType >::Threshold Struct Reference

Tag type used to pass the relative threshold to constructors. More...

#include <thresholded_affine.hpp>

Public Member Functions

 Threshold (value_t v)
 Constructs a Threshold with the given value.

Public Attributes

value_t value
 The relative threshold value (e.g. 0.01 for 1%).

Detailed Description

template<typename ValueType>
struct sigma::ThresholdedAffine< ValueType >::Threshold

Tag type used to pass the relative threshold to constructors.

Wrapping the threshold in this type avoids overload ambiguity between ThresholdedAffine(value_t lo, value_t hi) and ThresholdedAffine(value_t center, value_t threshold).

Example:

ThresholdedAffine()
Constructs an empty ThresholdedAffine.
Definition thresholded_affine.hpp:76
Threshold(value_t v)
Constructs a Threshold with the given value.
Definition thresholded_affine.hpp:64

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