validate_probability: Validate probability

Description Usage Arguments Value Raises

View source: R/sampling_simulations.R

Description

Validates that a probability is between 0 and 1 inclusively.

Usage

1

Arguments

p

The value to validate.

p_str

What to call the probability in error messages.

Value

The probability p if the probability if valid.

Raises

ValueError if the probability is invalid.


henry090/Cirq documentation built on June 13, 2020, 1:28 a.m.