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

◆ scaled_inv_chi_square_rng()

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

Return a scaled chi square random variate for the given number of degrees of freedom and scale using the specified random number generator.

nu and sigma can each be a scalar or a one-dimensional container. Any non-scalar inputs must be the same size.

Template Parameters
T_degtype of degrees of freedom parameter
T_scaletype of scale parameter
RNGtype of random number generator
Parameters
nu(Sequence of) positive degrees of freedom parameter(s)
s(Sequence of) positive scale parameter(s)
rngrandom number generator
Returns
(Sequence of) scaled chi square random variate(s)
Exceptions
std::domain_errorif nu or sigma are nonpositive
std::invalid_argumentif non-scalar arguments are of different sizes

Definition at line 36 of file scaled_inv_chi_square_rng.hpp.