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

◆ rayleigh_rng()

template<typename T_scale , class RNG >
VectorBuilder< true, double, T_scale >::type stan::math::rayleigh_rng ( const T_scale &  sigma,
RNG &  rng 
)
inline

Return a Rayleigh random variate with scale parameter sigma using the specified random number generator.

sigma can be a scalar or a one-dimensional container.

Template Parameters
T_scaleType of scale parameter
RNGclass of random number generator
Parameters
sigma(Sequence of) positive scale parameter(s)
rngrandom number generator
Returns
(Sequence of) Rayleigh random variate(s)
Exceptions
std::domain_errorif sigma is nonpositive

Definition at line 30 of file rayleigh_rng.hpp.