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

◆ inv_chi_square_rng()

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

Return a pseudorandom inverse chi squared variate with the 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) inverse chi squared random variate(s)
Exceptions
std::domain_errorif nu is nonpositive

Definition at line 28 of file inv_chi_square_rng.hpp.