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

◆ chi_square_rng()

template<typename T_deg , class RNG >
VectorBuilder< true, double, T_deg >::type stan::math::chi_square_rng ( const T_deg &  nu,
RNG &  rng 
)
inline

Return a chi squared random variate with nu degrees of freedom using the specified random number generator.

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

Template Parameters
T_degtype of degrees of freedom parameter
RNGclass of random number generator
Parameters
nu(Sequence of) positive degrees of freedom parameter(s)
rngrandom number generator
Returns
(Sequence of) chi squared random variate(s)
Exceptions
std::domain_errorif nu is nonpositive

Definition at line 28 of file chi_square_rng.hpp.