Check that probabilities sum to 1 (or approximately 1)

check_probs_sum_to_one(probs, msg = T, tolerance = .Machine$double.eps^0.5)

Arguments

probs

vector of probabilities for a single forecast

tolerance

tolerance relative to 1, default = .Machine$double.eps^0.5

Value

TRUE or error message