Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ rayleigh_lpdf() [1/3]

template<bool propto, typename T_y_cl , typename T_scale_cl , require_all_prim_or_rev_kernel_expression_t< T_y_cl, T_scale_cl > * = nullptr, require_any_not_stan_scalar_t< T_y_cl, T_scale_cl > * = nullptr>
return_type_t< T_y_cl, T_scale_cl > stan::math::rayleigh_lpdf ( const T_y_cl &  y,
const T_scale_cl &  sigma 
)

The log of an Rayleigh density for y with the specified scale parameter.

y and scale parameter must be greater than 0.

Template Parameters
T_y_cltype of scalar
T_scale_cltype of inverse scale
Parameters
yA scalar variable.
sigmaInverse scale parameter.
Exceptions
std::domain_errorif sigma is not greater than 0.
std::domain_errorif y is not greater than or equal to 0.

Definition at line 31 of file rayleigh_lpdf.hpp.