scipy.stats.sampling.NumericalInversePolynomial.

rvs#

NumericalInversePolynomial.rvs(size=None, random_state=None)#

從分布中取樣。

參數:
sizeint 或 tuple,可選

樣本的形狀。預設值為 None,在此情況下會傳回純量樣本。

random_state{None, int, numpy.random.Generator,

NumPy 隨機數生成器或用於底層 NumPy 隨機數生成器的種子,用於生成均勻隨機數流。如果 random_state 為 None(或 np.random),則使用初始化期間提供的 random_state。如果 random_state 為 int,則會使用新的 RandomState 實例,並以 random_state 作為種子。如果 random_state 已經是 GeneratorRandomState 實例,則會使用該實例。

回傳值:
rvsarray_like

NumPy 隨機變數陣列。