提交 e967ece1 authored 作者: Rémi Louf's avatar Rémi Louf 提交者: Brandon T. Willard

Update the docstring of `GerometricRV`

上级 bb33e833
......@@ -959,13 +959,11 @@ class GeometricRV(RandomVariable):
Parameters
----------
p
Probability of success :math:`p` of an individual trial.
Probability of success :math:`p` of an individual trial.
size
Sample shape. If the given size is, e.g. `(m, n, k)` then `m * n * k`
independent, identically distributed random variables are
returned. Default is `None` in which case a single random variable
is returned if `p` is a scalar. Otherwise `np.array(p).size` samples
are drawn.
Sample shape. If the given size is, e.g. `(m, n, k)` then `m * n *
k` independent, identically distributed samples are returned.
Default is `None` in which case a single sample is returned.
"""
return super().__call__(p, size=size, **kwargs)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论