提交 4f88815c authored 作者: Frederic Bastien's avatar Frederic Bastien

fix MRG normal distribution

上级 fefdb397
...@@ -664,7 +664,7 @@ class MRG_RandomStreams(object): ...@@ -664,7 +664,7 @@ class MRG_RandomStreams(object):
# second half our U2's. See Wikipedia page: # second half our U2's. See Wikipedia page:
# http://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform # http://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform
n_samples = self.n_streams(size) n_samples = numpy.prod(size)
evened = False evened = False
if n_samples % 2 == 1: if n_samples % 2 == 1:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论