st.gamma.rvs
时间: 2024-05-20 14:16:38 浏览: 70
As an AI language model, I don't have access to a specific programming language's library or functions. However, I can explain the st.gamma.rvs function in general.
st.gamma.rvs is a random variable generator function from the gamma distribution in the SciPy library of Python. It generates random numbers from a gamma distribution with specified shape and scale parameters.
The function signature is:
`scipy.stats.gamma.rvs(a, loc=0, scale=1, size=1, random_state=None)`
where:
- `a`: shape parameter of the gamma distribution.
- `loc`: location parameter of the gamma distribution. Default is 0.
- `scale`: scale parameter of the gamma distribution. Default is 1.
- `size`: the shape of the output array. Default is 1.
- `random_state`: seed value for the random number generator. Default is None.
The output of this function is an array of random numbers from the gamma distribution with the specified shape, scale, and size parameters.
阅读全文