DUDS
Distributed Update of Data from Something
duds::data::SampleNU< VT, QT > Struct Template Reference

#include <Sample.hpp>

Public Types

typedef QT Quality
 
typedef VT Value
 

Public Attributes

QT accuracy
 The expected accuracy of the instrument under the conditions in which the sample was taken. More...
 
boost::uuids::uuid origin
 The source of this sample. More...
 
QT precision
 The expected precision of the instrument under the conditions in which the sample was taken. More...
 
QT resolution
 The expected resolution of the instrument under the conditions in which the sample was taken. More...
 
VT value
 The value sampled from the insturment. More...
 

Static Public Attributes

static constexpr QT Unspecified = std::numeric_limits<QT>::infinity()
 The value used to represent an unspecified or unknown accuracy, precision, or resolution. More...
 

Detailed Description

template<class VT, class QT>
struct duds::data::SampleNU< VT, QT >

Definition at line 233 of file Sample.hpp.

Member Typedef Documentation

◆ Quality

template<class VT , class QT >
typedef QT duds::data::SampleNU< VT, QT >::Quality

Definition at line 235 of file Sample.hpp.

◆ Value

template<class VT , class QT >
typedef VT duds::data::SampleNU< VT, QT >::Value

Definition at line 234 of file Sample.hpp.

Member Data Documentation

◆ accuracy

template<class VT , class QT >
QT duds::data::SampleNU< VT, QT >::accuracy

The expected accuracy of the instrument under the conditions in which the sample was taken.

This is how far from correct the value could be.

Definition at line 253 of file Sample.hpp.

◆ origin

template<class VT , class QT >
boost::uuids::uuid duds::data::SampleNU< VT, QT >::origin

The source of this sample.

Definition at line 244 of file Sample.hpp.

◆ precision

template<class VT , class QT >
QT duds::data::SampleNU< VT, QT >::precision

The expected precision of the instrument under the conditions in which the sample was taken.

This is how much the sample value may vary when the measured property is the same; think of it as consistency or repeatability.

Definition at line 260 of file Sample.hpp.

◆ resolution

template<class VT , class QT >
QT duds::data::SampleNU< VT, QT >::resolution

The expected resolution of the instrument under the conditions in which the sample was taken.

This is the smallest increment the insturment can represent. Since the Sample object may store the value in different units than the instrument reports, this value is not determined by the types used in the Sample object.

Definition at line 268 of file Sample.hpp.

◆ Unspecified

template<class VT , class QT >
constexpr QT duds::data::SampleNU< VT, QT >::Unspecified = std::numeric_limits<QT>::infinity()
static

The value used to represent an unspecified or unknown accuracy, precision, or resolution.

Definition at line 240 of file Sample.hpp.

◆ value

template<class VT , class QT >
VT duds::data::SampleNU< VT, QT >::value

The value sampled from the insturment.

Definition at line 248 of file Sample.hpp.


The documentation for this struct was generated from the following file: