Class
LogProbValue type for computation in log-space.
Value type for computation in log-space.
Defined in | <seqan/basic.h> |
---|---|
Signature |
template <[typename T]>
class LogProb;
|
Template Parameters
T |
Floating number type to use as the basic, defaults to double. |
---|
Detailed Description
Remarks
Internally, the logarithms of the original values are stored. This is numerically more stable for multiplications and large numbers.
This type can be used like an ordinary double or float value.
Examples
LogProb<double> x = 10; x *= 3; x += 4; int y = x;