PARTONS/NumA++
|
Numerical Analysis C++ routines
|
Class defining absolute and relative differences for comparison of real numbers (double). More...
Public Member Functions | |
Differences () | |
Default constructor (differences equal to 0). More... | |
Differences (const double absoluteDifference, const double relativeDifference) | |
Constructor. More... | |
virtual | ~Differences () |
Default destructor. More... | |
std::string | toString () const |
double | getAbsoluteDifference () const |
double | getRelativeDifference () const |
void | setAbsoluteDifference (double absoluteDifference) |
void | setRelativeDifference (double relativeDifference) |
Private Attributes | |
double | m_absoluteDifference |
Absolute difference. More... | |
double | m_relativeDifference |
Relative difference. More... | |
Class defining absolute and relative differences for comparison of real numbers (double).
NumA::Differences::Differences | ( | ) |
Default constructor (differences equal to 0).
NumA::Differences::Differences | ( | const double | absoluteDifference, |
const double | relativeDifference | ||
) |
Constructor.
absoluteDifference | Absolute difference. |
relativeDifference | Relative difference. |
|
virtual |
Default destructor.
double NumA::Differences::getAbsoluteDifference | ( | ) | const |
double NumA::Differences::getRelativeDifference | ( | ) | const |
void NumA::Differences::setAbsoluteDifference | ( | double | absoluteDifference | ) |
absoluteDifference | Absolute difference. |
void NumA::Differences::setRelativeDifference | ( | double | relativeDifference | ) |
relativeDifference | Relative difference. |
std::string NumA::Differences::toString | ( | ) | const |
|
private |
Absolute difference.
|
private |
Relative difference.