13template<
typename IntervalType>
22template<
typename IntervalType>
24 typename IntervalType::value_t nominal);
47template<
typename IntervalType,
typename BoundsFunction,
48 typename NominalFunction>
50 BoundsFunction&& bounds_fxn,
51 NominalFunction&& nominal_fxn) {
52 using value_t =
typename IntervalType::value_t;
54 auto bounds = bounds_fxn(a.
interval());
55 value_t nominal = nominal_fxn(a.
nominal());
Models an interval together with a best estimate inside it.
Definition triplex.hpp:42
bool empty() const
Is *this the empty triplex?
Definition triplex.hpp:139
const interval_t & interval() const
Returns the bounds, discarding the nominal value.
Definition triplex.hpp:225
value_t nominal() const
Returns the nominal value.
Definition triplex.hpp:163
Defines the function every triplex operation uses to build its result.
The namespace that contains the implementation details of the library.
Definition convert.hpp:18
Triplex< IntervalType > apply_unary_(const Triplex< IntervalType > &a, BoundsFunction &&bounds_fxn, NominalFunction &&nominal_fxn)
Applies a unary function to a triplex.
Definition apply_unary.hpp:49
Triplex< IntervalType > make_triplex_(IntervalType bounds, typename IntervalType::value_t nominal)
Assembles a triplex from the result of an operation.
Definition make_triplex.hpp:44
The primary namespace for the sigma library.
Definition affine.hpp:12