Description
The uniform_lpdf, discrete_uniform_lpmf and pareto_lpdf all have support determined by parameters. When the variate is not in that support we should be throwing std::domain_error as elsewhere.
The principle at work here is that we want to fail fast with an informative error message, not just let NaN values propagate and cause rejections.
Current Version:
v3.1.0
Description
The
uniform_lpdf,discrete_uniform_lpmfandpareto_lpdfall have support determined by parameters. When the variate is not in that support we should be throwingstd::domain_erroras elsewhere.The principle at work here is that we want to fail fast with an informative error message, not just let
NaNvalues propagate and cause rejections.Current Version:
v3.1.0