def rvs(cls, a, b, size=1, random_state=None):
"""Draw random variates.
Parameters
----------
a : float or array-like
b : float or array-like
size : int, optional
random_state : RandomState, optional
Returns
-------
np.array
"""
u = ss.uniform.rvs(loc=a, scale=b-a, size=size, random_state=random_state)
x = np.exp(u)
return x
评论列表
文章目录