bundles / scipy latest / scipy / stats / _multivariate / random_table_frozen / rvs
function
scipy.stats._multivariate:random_table_frozen.rvs
Signature
def rvs ( self , size = None , method = None , random_state = None ) Summary
Draw random tables with fixed column and row marginals.
Parameters
size: integer, optionalNumber of samples to draw (default 1).
method: str, optionalWhich method to use, "boyett" or "patefield". If None (default), selects the fastest method for this input.
seed: {None, int, np.random.RandomState, np.random.Generator}, optionalUsed for drawing random variates. If seed is
None, the~np.random.RandomStatesingleton is used. If seed is an int, a newRandomStateinstance is used, seeded with seed. If seed is already aRandomStateorGeneratorinstance, then that object is used. Default isNone.
Returns
rvs: ndarrayRandom 2D tables of shape (
size,len(row),len(col)).
Notes
See class definition for a detailed description of parameters.
Examples
from scipy.stats import random_table
✓row = [1, 5] col = [2, 3, 1]✓
random_table.rvs(row, col, random_state=123)
✗d = random_table(row, col)
✓d.rvs(random_state=123)
✗Aliases
-
scipy.stats._multivariate.random_table_frozen.rvs