#include <pydtn/Measurement.h>
Public Member Functions | |
| Measurement () | |
| Default constructor; sets everything to zero. | |
| Measurement (double val, double var) | |
| Constructor for floating-point values. | |
| Measurement (unsigned long int val) | |
| Constructor for counting measurements. | |
| Measurement (const Measurement &m) | |
| Copy constructor. | |
| virtual | ~Measurement () |
| Destructor. | |
| void | operator= (const Measurement &m) |
| Assignment operator. | |
| double | value () const |
| |
| double | variance () const |
| |
| double | deviation () const |
| |
| bool | operator< (const Measurement &m) const |
| Less-than operator. | |
| bool | operator> (const Measurement &m) const |
| Greater-than operator. | |
Mathematical operations | |
All of these operators assume the operands are independent quantities.
If there are correlations, you're on your own. | |
| Measurement | operator+ (const Measurement &m) const |
| Addition operator. | |
| Measurement | operator- (const Measurement &m) const |
| Subtraction operator. | |
| Measurement | operator * (const Measurement &m) const |
| Multiplication operator. | |
| Measurement | operator/ (const Measurement &m) const |
| Division operator. | |
Definition at line 41 of file Measurement.h.
| Measurement::Measurement | ( | double | val, | |
| double | var | |||
| ) |
Constructor for floating-point values.
| val | The measurement value | |
| var | The variance on val (the square of the standard deviation) |
Definition at line 42 of file Measurement.cc.
| Measurement::Measurement | ( | unsigned long int | val | ) |
Constructor for counting measurements.
| val | The count; equal to the variance |
Definition at line 49 of file Measurement.cc.
| Measurement::Measurement | ( | const Measurement & | m | ) |
| void Measurement::operator= | ( | const Measurement & | m | ) |
Assignment operator.
| m | Another measurement |
Definition at line 68 of file Measurement.cc.
References m_sigma, m_value, and m_variance.
| Measurement Measurement::operator+ | ( | const Measurement & | m | ) | const |
Addition operator.
| m | The other addend |
Definition at line 78 of file Measurement.cc.
References m_value, m_variance, and Measurement().
| Measurement Measurement::operator- | ( | const Measurement & | m | ) | const |
Subtraction operator.
| m | The subtrahend |
Definition at line 86 of file Measurement.cc.
References m_value, m_variance, and Measurement().
| Measurement Measurement::operator * | ( | const Measurement & | m | ) | const |
Multiplication operator.
| m | The other multiplicand |
Definition at line 94 of file Measurement.cc.
References m_value, m_variance, and Measurement().
| Measurement Measurement::operator/ | ( | const Measurement & | m | ) | const |
Division operator.
| m | The divisor |
Definition at line 104 of file Measurement.cc.
References m_value, m_variance, and Measurement().
| bool Measurement::operator< | ( | const Measurement & | m | ) | const |
Less-than operator.
| m | The other comparate |
| true | if this object's value is less than m | |
| false | otherwise |
Definition at line 113 of file Measurement.cc.
References m_value.
| bool Measurement::operator> | ( | const Measurement & | m | ) | const |
Greater-than operator.
| m | The other comparate |
| true | if this object's value is greater than m | |
| false | otherwise |
Definition at line 119 of file Measurement.cc.
References m_value.
1.5.4