An error probability to convert to phred.
The input probability as a phred score, rounded to the nearest int.
A log-scaled success probability to conver to phred.
Returns this probability as a Phred score. If the log value is 0.0, we clip the phred score to 256.
The phred score to convert.
The input phred score as an error probability. If the phred score is above 255, we clip to 255.
The phred score to convert.
The input phred score as a log success probability.
The phred score to convert.
The input phred score as a success probability. If the phred score is above 255, we clip to 255.
A success probability to convert to phred.
One minus the input probability as a phred score, rounded to the nearest int.
Helper singleton for converting Phred scores to/from probabilities.
As a reminder, given an error probability \epsilon, the Phred score q is:
q = -10 log_{10} \epsilon