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