|
DUDS
|
Distributed Update of Data from Something
|
A template for a sample from an insturment that does not store units or the origin. More...
#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... | |
| 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... | |
A template for a sample from an insturment that does not store units or the origin.
This is intended for use in data structures that store many samples from the same Instrument.
| VT | The type used to store the value meausred by the insturment. In most cases, this should be double. In the case of a time stamp rather than an interval, the value should be an integer to avoid loss of resolution the further the time is from time zero. |
| QT | The type used to store quality information about the sampled value. In the case of a time stamp, a double or float could be used. Units are be the same as in VT, unless VT is one of the duds::time::interstellar time types and QT is a floating point type, in which case the units are seconds. Unsigned intergers must not be used. |
Definition at line 60 of file Sample.hpp.
| typedef QT duds::data::CompactSample< VT, QT >::Quality |
Definition at line 188 of file Sample.hpp.
| typedef VT duds::data::CompactSample< VT, QT >::Value |
Definition at line 187 of file Sample.hpp.
| QT duds::data::CompactSample< 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 202 of file Sample.hpp.
| QT duds::data::CompactSample< 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 209 of file Sample.hpp.
| QT duds::data::CompactSample< 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 217 of file Sample.hpp.
|
static |
The value used to represent an unspecified or unknown accuracy, precision, or resolution.
Definition at line 193 of file Sample.hpp.
| VT duds::data::CompactSample< VT, QT >::value |
The value sampled from the insturment.
Definition at line 197 of file Sample.hpp.