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_deg | type of degrees of freedom parameter |
T_scale | type of scale parameter |
RNG | type of random number generator |
- Parameters
-
nu | (Sequence of) positive degrees of freedom parameter(s) |
s | (Sequence of) positive scale parameter(s) |
rng | random number generator |
- Returns
- (Sequence of) scaled chi square random variate(s)
- Exceptions
-
std::domain_error | if nu or sigma are nonpositive |
std::invalid_argument | if non-scalar arguments are of different sizes |
Definition at line 36 of file scaled_inv_chi_square_rng.hpp.