Class

LogProb

Value type for computation in log-space.

Include Headers

seqan/basic.h

Parameters

Floating number type to use as the basic. Default: |

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

x *= 3;

x += 4;

int y = x;

SeqAn - Sequence Analysis Library - www.seqan.de