Skip to contents

Check that probability is a single numeric value strictly between 0 and 1.

Usage

validate_probability(probability, arg_name = "probability")

Arguments

probability

Value to validate.

arg_name

Name of the argument for error messages.

Value

probability if valid.