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

Update the docstring of `DirichletRV`

上级 44dca570
...@@ -862,10 +862,10 @@ class DirichletRV(RandomVariable): ...@@ -862,10 +862,10 @@ class DirichletRV(RandomVariable):
A sequence of concentration parameters :math:`\boldsymbol{\alpha}` of the A sequence of concentration parameters :math:`\boldsymbol{\alpha}` of the
distribution. A sequence of length `k` will produce samples of length `k`. distribution. A sequence of length `k` will produce samples of length `k`.
size size
Sample shape. If the given size is, e.g. `(m, n, k)` then `m * n * k` Given a size of, for example, `(r, s, t)`, `r * s * t` independent,
independent, identically distributed random variables are identically distributed samples are generated. Because each sample
returned. Default is `None` in which case a vector of length `k` is `k`-dimensional, the output shape is `(r, s, t, k)`. If no shape
is returned. is specified, a single `k`-dimensional sample is returned.
""" """
return super().__call__(alphas, size=size, **kwargs) return super().__call__(alphas, size=size, **kwargs)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论