#include <Quantity.h>
Public Member Functions | |
Quantity () | |
Quantity (const double &mean, const double &sigma) | |
Quantity (const double &mean) | |
Quantity (const int &imean) | |
Quantity (const Quantity &other) | |
~Quantity () | |
Quantity & | operator= (const Quantity &other) |
operator double () const | |
double | mean () const |
double | sigma () const |
Quantity & | operator+= (const double &exact) |
Quantity & | operator-= (const double &exact) |
Quantity & | operator*= (const double &exact) |
Quantity & | operator/= (const double &exact) |
Quantity & | operator*= (const Quantity &other) |
Quantity & | operator/= (const Quantity &other) |
Quantity & | operator-= (const Quantity &other) |
Quantity & | operator+= (const Quantity &other) |
bool | operator< (const Quantity &other) const |
bool | operator> (const Quantity &other) const |
bool | operator== (const Quantity &other) const |
bool | operator!= (const Quantity &other) const |
Private Attributes | |
double | m_mean |
double | m_sigma |
Provide a quantity with a value and an uncertainty and all the little math operators.
Beware this assumes all quantities are uncorrelated!
Definition at line 16 of file Quantity.h.
|
inline |
Definition at line 18 of file Quantity.h.
|
inline |
Definition at line 21 of file Quantity.h.
|
inline |
Definition at line 24 of file Quantity.h.
|
inline |
Definition at line 27 of file Quantity.h.
|
inline |
Definition at line 30 of file Quantity.h.
|
inline |
Definition at line 35 of file Quantity.h.
|
inline |
Definition at line 47 of file Quantity.h.
|
inline |
Definition at line 45 of file Quantity.h.
Definition at line 121 of file Quantity.h.
|
inline |
Definition at line 63 of file Quantity.h.
Definition at line 78 of file Quantity.h.
|
inline |
Definition at line 51 of file Quantity.h.
Definition at line 105 of file Quantity.h.
|
inline |
Definition at line 57 of file Quantity.h.
Definition at line 100 of file Quantity.h.
|
inline |
Definition at line 70 of file Quantity.h.
Definition at line 89 of file Quantity.h.
Definition at line 112 of file Quantity.h.
Definition at line 37 of file Quantity.h.
Definition at line 118 of file Quantity.h.
Definition at line 115 of file Quantity.h.
|
inline |
Definition at line 48 of file Quantity.h.
|
private |
Definition at line 127 of file Quantity.h.
|
private |
Definition at line 127 of file Quantity.h.