Converts raw data to values appropriate for accumulation.
More...
#include <AccumulationConverter.h>
|
virtual bool | decode (double &value) const |
| Converts storage data to natural scale. More...
|
|
virtual bool | decode (double &value, double &weight) const |
|
virtual void | encode (double &value, double &weight) const |
| Converts natural-scale data to storage data, applying marker codes if needed.
|
|
virtual void | encodeWeight (double &weight) const |
| Converts natural-scale data to storage data, applying marker codes if needed.
|
|
virtual void | encodeCount (double &weight) const |
| Converts natural-scale data to storage data, applying marker codes if needed.
|
|
virtual void | encodeStdDev (double &stdDev) const |
|
virtual void | encodeDiff (double &diff) const |
| When using unsigned types, encoding typically requires adding a positive bias and scaling the data.
|
|
double | getNoDataMarker () const |
| Returns the value when weight==0.0. Physically, this relates to results obtained under measurement accuracy.
|
|
virtual double | getNoReadingMarker () const |
|
virtual std::ostream & | toOstr (std::ostream &ostr) const |
|
|
std::string | type |
| Default output storage data type.
|
|
Converts raw data to values appropriate for accumulation.
◆ decode() [1/2]
virtual bool decode |
( |
double & |
value | ) |
const |
|
inlinevirtual |
Converts storage data to natural scale.
- Parameters
-
value | - storage data, possibly containing marker codes |
- Returns
- - true if data is valid for use, otherwise false.
Reimplemented in DataCoder.
◆ decode() [2/2]
virtual bool decode |
( |
double & |
value, |
|
|
double & |
weight |
|
) |
| const |
|
inlinevirtual |
Converts storage data, possibly containing marker codes, to natural scale. Returns true if data is valid for use, otherwise false. Converts storage data to natural scale.
- Parameters
-
value | - storage data, possibly containing marker codes |
- Returns
- - true if data is valid for use, otherwise false.
Reimplemented in DataCoder.
The documentation for this struct was generated from the following file: