#include <confident_quantity.hpp>
Public Member Functions | |
constexpr T | worst_confidence () const |
constexpr T | default_value () const |
constexpr bool | is_nan (const T &t) const |
ConfidentQuantity (const T &value) | |
ConfidentQuantity (const T &value, const T &confidence) | |
ConfidentQuantity (const ConfidentQuantity &)=default | |
ConfidentQuantity & | operator= (const ConfidentQuantity &)=default |
ConfidentQuantity (ConfidentQuantity &&)=default | |
ConfidentQuantity & | operator= (ConfidentQuantity &&)=default |
void | assign (const T &value, const T &confidence) |
const T & | value () const |
const T & | confidence () const |
Private Attributes | |
T | m_value |
T | m_confidence |
ConfidentQuantity combines a boost::quantity value with a confidence level.
Usually, a confidence level of 95% is used in ITS specifications. If no confidence level is explicitly given a worst case value is used, i.e. the maximum value representable by the underlying type or infinity.
Definition at line 17 of file confident_quantity.hpp.
|
inline |
Definition at line 40 of file confident_quantity.hpp.
|
inline |
Definition at line 42 of file confident_quantity.hpp.
|
inline |
Definition at line 44 of file confident_quantity.hpp.
|
inline |
Definition at line 52 of file confident_quantity.hpp.
|
inline |
Definition at line 63 of file confident_quantity.hpp.
|
inlineconstexpr |
Definition at line 28 of file confident_quantity.hpp.
|
inlineconstexpr |
Definition at line 35 of file confident_quantity.hpp.
|
inline |
Definition at line 58 of file confident_quantity.hpp.
|
inlineconstexpr |
Definition at line 20 of file confident_quantity.hpp.
|
private |
Definition at line 70 of file confident_quantity.hpp.
|
private |
Definition at line 69 of file confident_quantity.hpp.