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_deg | type of degrees of freedom parameter |
RNG | class of random number generator |
- Parameters
-
nu | (Sequence of) positive degrees of freedom parameter(s) |
rng | random number generator |
- Returns
- (Sequence of) chi squared random variate(s)
- Exceptions
-
std::domain_error | if nu is nonpositive |
Definition at line 28 of file chi_square_rng.hpp.