11 #include <boost/uuid/nil_generator.hpp> 14 namespace duds {
namespace data {
20 namespace _it_needs_to_go_somewhere_ {
29 static constexpr T
value = std::numeric_limits<T>::infinity();
39 static constexpr T
value = std::numeric_limits<T>::lowest();
51 template <
typename QT>
53 return std::conditional<std::numeric_limits<QT>::has_infinity,
59 template <
class VT = GenericValue,
class QT =
double>
80 template <
class VT,
class QT>
89 return duds::data::unspecified<QT>();
137 return makeCompactSample();
144 origin = boost::uuids::nil_uuid();
146 accuracy = precision = estError = resolution =
unspecified();
156 return origin.is_nil();
185 template <
class VT,
class QT>
193 static constexpr QT Unspecified = std::numeric_limits<QT>::infinity();
232 template <
class VT,
class QT>
240 static constexpr QT Unspecified = std::numeric_limits<QT>::infinity();
283 template <
class VT,
class QT>
QT resolution
The expected resolution of the instrument under the conditions in which the sample was taken...
CompactSample< VT, QT > makeCompactSample() const
Produce a CompactSample using the data in this Sample.
void clear()
Initializes the sample to hold no data.
QT resolution
The expected resolution of the instrument under the conditions in which the sample was taken...
QT estError
The estimated error of the observation.
A template for a sample from an insturment.
QT precision
The expected precision of the instrument under the conditions in which the sample was taken...
QT resolution
The expected resolution of the instrument under the conditions in which the sample was taken...
VT value
The value sampled from the insturment.
GenericSample< GenericValue, double > Sample
A sample type that is good for general purpose use.
boost::uuids::uuid origin
The UUID for the source instrument of this sample.
QT accuracy
The expected accuracy of the instrument under the conditions in which the sample was taken...
QT accuracy
The expected accuracy of the instrument under the conditions in which the sample was taken...
bool isClear() const
Returns true when this object contains no sample data.
static constexpr QT unspecified()
Returns the value used to represent an unspecified or unknown accuracy, precision, resolution, or error.
QT precision
The expected precision of the instrument under the conditions in which the sample was taken...
static constexpr QT unspecified()
Returns the value used to represent an unspecified or unknown accuracy, precision, resolution, or error.
boost::uuids::uuid origin
The source of this sample.
VT value
The value sampled from the insturment.
VT value
The value sampled from the insturment.
QT precision
The expected precision of the instrument under the conditions in which the sample was taken...
QT accuracy
The expected accuracy of the instrument under the conditions in which the sample was taken...
A template for a sample from an insturment that does not store units or the origin.