Skip to main contentModule util
Source - exclusive_probability_of
- Given the probabilities of two independent events A and B, returns the
probability that A occurs or B occurs, but not both.
- probability_of_weight
- Return the probability corresponding to an log-likelihood weight.
- timestamp_ns
- Returns nanoseconds elapsed since the first call to this function in the
current process, using a monotonic clock.
- union_probability_of
- Given the probabilities of two independent events A and B, returns the
probability that at least one of them occurs.
- weight_of
- Return the log-likelihood weight
-ln(p / (1 - p)).