![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Class representing a number in logarithmic space. More...
#include <mdsLogNum.h>
Public Types | |
| typedef T | tNumber |
| Type of the number. | |
Public Member Functions | |
| CLogNum () | |
| Default constructor. | |
| CLogNum (const T &v) | |
| Constructor. | |
| CLogNum (const T &v, LogNum::ELogValue) | |
| Constructor. | |
| template<typename U > | |
| CLogNum (const CLogNum< U > &n) | |
| Copy constructor. | |
| T | get () const |
| Returns current value in original space. | |
| T | get (LogNum::ELogValue) const |
| Returns current value in logarithmic space. | |
| CLogNum & | operator*= (const CLogNum &n) |
| CLogNum & | operator*= (const T &c) |
| CLogNum & | operator+= (const CLogNum &n) |
| Combined assignment operators. | |
| CLogNum & | operator+= (const T &c) |
| Others combined assignment operators. | |
| CLogNum & | operator-= (const CLogNum &n) |
| CLogNum & | operator-= (const T &c) |
| CLogNum & | operator/= (const CLogNum &n) |
| CLogNum & | operator/= (const T &c) |
| template<typename U > | |
| CLogNum & | operator= (const CLogNum< U > &n) |
| Assignment operator. | |
| CLogNum & | operator= (const T &v) |
| Assignment operator. | |
| void | set (const T &v) |
| Sets the current value in original space. | |
| void | set (const T &v, LogNum::ELogValue) |
| Sets the current value in logarithmic space. | |
| ~CLogNum () | |
| Destructor. | |
Static Public Member Functions | |
| static T | getSafeExp (T x) |
| Safe computation of the exp(x) function. | |
| static T | getSafeLog (T x) |
| Safe computation of the log(x) function. | |
| static T | logAdd (T x, T y) |
| Returns x + y in the logarithmic space. | |
| static T | logSub (T x, T y) |
| Returns x - y in the logarithmic space. | |
Public Attributes | |
| T | value |
| Value stored in the logarithmic space. | |
Class representing a number in logarithmic space.
| typedef T mds::math::CLogNum< T >::tNumber |
Type of the number.
| mds::math::CLogNum< T >::CLogNum | ( | ) |
Default constructor.
| mds::math::CLogNum< T >::CLogNum | ( | const T & | v | ) |
Constructor.
| mds::math::CLogNum< T >::CLogNum | ( | const T & | v, |
| LogNum::ELogValue | |||
| ) |
Constructor.
| mds::math::CLogNum< T >::CLogNum | ( | const CLogNum< U > & | n | ) |
Copy constructor.
| mds::math::CLogNum< T >::~CLogNum | ( | ) |
Destructor.
| T mds::math::CLogNum< T >::get | ( | ) | const |
Returns current value in original space.
| T mds::math::CLogNum< T >::get | ( | LogNum::ELogValue | ) | const |
Returns current value in logarithmic space.
| T mds::math::CLogNum< T >::getSafeExp | ( | T | x | ) | [static] |
Safe computation of the exp(x) function.
| T mds::math::CLogNum< T >::getSafeLog | ( | T | x | ) | [static] |
Safe computation of the log(x) function.
| T mds::math::CLogNum< T >::logAdd | ( | T | x, |
| T | y | ||
| ) | [static] |
Returns x + y in the logarithmic space.
| T mds::math::CLogNum< T >::logSub | ( | T | x, |
| T | y | ||
| ) | [static] |
Returns x - y in the logarithmic space.
| CLogNum< T > & mds::math::CLogNum< T >::operator*= | ( | const CLogNum< T > & | n | ) |
| CLogNum< T > & mds::math::CLogNum< T >::operator*= | ( | const T & | c | ) |
| CLogNum< T > & mds::math::CLogNum< T >::operator+= | ( | const CLogNum< T > & | n | ) |
Combined assignment operators.
| CLogNum< T > & mds::math::CLogNum< T >::operator+= | ( | const T & | c | ) |
Others combined assignment operators.
| CLogNum< T > & mds::math::CLogNum< T >::operator-= | ( | const CLogNum< T > & | n | ) |
| CLogNum< T > & mds::math::CLogNum< T >::operator-= | ( | const T & | c | ) |
| CLogNum< T > & mds::math::CLogNum< T >::operator/= | ( | const CLogNum< T > & | n | ) |
| CLogNum< T > & mds::math::CLogNum< T >::operator/= | ( | const T & | c | ) |
| CLogNum& mds::math::CLogNum< T >::operator= | ( | const CLogNum< U > & | n | ) |
Assignment operator.
| CLogNum& mds::math::CLogNum< T >::operator= | ( | const T & | v | ) |
Assignment operator.
| void mds::math::CLogNum< T >::set | ( | const T & | v | ) |
Sets the current value in original space.
| void mds::math::CLogNum< T >::set | ( | const T & | v, |
| LogNum::ELogValue | |||
| ) |
Sets the current value in logarithmic space.
| T mds::math::CLogNum< T >::value |
Value stored in the logarithmic space.
1.7.6.1