check_probs_sum_to_one.Rd
Check that probabilities sum to 1 (or approximately 1)
check_probs_sum_to_one(probs, msg = T, tolerance = .Machine$double.eps^0.5)
probs | vector of probabilities for a single forecast |
---|---|
tolerance | tolerance relative to 1, default = .Machine$double.eps^0.5 |
TRUE or error message