deltakit.core.decoding_graphs.EdgeRecord.from_loglikelihood#
- classmethod EdgeRecord.from_loglikelihood(weight: float) EdgeRecord#
Create a EdgeRecord from a loglikelihood weight rather than a p_err.
- Parameters:
weight (float) – Edge weight as a loglikelihood, defined as w=ln((1-p)/p) where w is the weight, p is error probability and ln is the natural log.
- Return type: