|
UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
|
Represents a confidence score as a single float value. More...
#include <lib/core/include/ufo/core/confidence.hpp>
Public Types | |
| using | value_type = float |
| Underlying scalar type. | |
Public Member Functions | |
| constexpr | operator value_type () const noexcept |
| Implicitly converts to the underlying scalar type. | |
Public Attributes | |
| value_type | confidence {} |
| The confidence score (e.g., a value in [0, 1]). | |
Friends | |
| constexpr auto | operator<=> (Confidence lhs, Confidence rhs) noexcept=default |
| Three-way comparison (total order on the underlying float). | |
| constexpr bool | operator== (Confidence lhs, Confidence rhs) noexcept=default |
| Equality comparison. | |
Represents a confidence score as a single float value.
Confidence is a lightweight, trivially-copyable value type used as the confidence or score component of Semantic. It pairs with Label to form a complete semantic annotation: a class ID and a measure of certainty for that class.
It is implicitly convertible to and from float, fully ordered via <=>, and supports std::ostream streaming and std::format.
Definition at line 66 of file confidence.hpp.
| using ufo::Confidence::value_type = float |
Underlying scalar type.
Definition at line 70 of file confidence.hpp.
|
inlineconstexprnoexcept |
Implicitly converts to the underlying scalar type.
Allows Confidence to be used wherever a float is expected.
Definition at line 84 of file confidence.hpp.
|
friend |
Three-way comparison (total order on the underlying float).
| [in] | lhs | Left operand. |
| [in] | rhs | Right operand. |
|
friend |
Equality comparison.
| [in] | lhs | Left operand. |
| [in] | rhs | Right operand. |
| value_type ufo::Confidence::confidence {} |
The confidence score (e.g., a value in [0, 1]).
Definition at line 75 of file confidence.hpp.