mp_units::utility::certainly_within¶
Checks whether the whole expanded uncertainty interval lies within the limits
Synopsis¶
Declared in <mp-units/utility/uncertain.h>
[[nodiscard]] constexpr bool certainly_within(
uncertain const& val, value_type const& lower_limit, value_type const& upper_limit,
value_type coverage_factor = static_cast<value_type>(2));
Note
This function is a hidden friend of uncertain, declared only inside that class: it can be found only through argument-dependent lookup.
Description¶
Conformity with a specification (JCGM 106): the value is accepted only if [value - U, value + U], with U = k·σ, fits inside the limits.
Return Value¶
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| coverage_factor | The coverage factor, 2 (about 95 %) by default |