Turn whatever the user passed as prior= into a BetaPrior.
Accepts a preset name, an (a, b) pair, an existing BetaPrior, or
None for the default.
- Parameters:
- prior : str, tuple, BetaPrior, or None
The prior specification. None resolves to "uninformed".
- Returns:
The resolved prior.
- Return type:
BetaPrior
- Raises:
ValueError – If a name is given that is not a known preset, or a tuple of the wrong
length.