statsmodels.distributions.bernstein.BernsteinDistributionBV.rvs#
- BernsteinDistributionBV.rvs(nobs, rng=None)#
Generate random numbers from distribution.
- Parameters:
- nobs
int Number of random observations to generate.
- rng
int, array_likeofint,numpy.random.Generator,ornumpy.random.RandomState,optional If rng is None, a new
Generatoris created using fresh entropy from the operating system. If rng is an int or array of ints, a newGeneratoris created, seeded with rng. If rng is already aGeneratororRandomStateinstance, that instance is used.- rng
int, array_likeofint,numpy.random.Generator,ornumpy.random.RandomState,optional Deprecated since version 0.15: random_state has been deprecated. In-line with SPEC-007, use rng for passing a random number generator or seed.
- nobs
- Returns:
ndarrayRandom samples from the Bernstein polynomial distribution, with nobs rows and k_dim columns.