We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d684612 commit c948a9eCopy full SHA for c948a9e
cuqi/distribution/_truncated_normal.py
@@ -37,7 +37,7 @@ class TruncatedNormal(Distribution):
37
p = cuqi.distribution.TruncatedNormal(mean=0, std=1, low=-2, high=2)
38
samples = p.sample(5000)
39
"""
40
- def __init__(self, mean=None, std=None, low=-np.Inf, high=np.Inf, is_symmetric=False, **kwargs):
+ def __init__(self, mean=None, std=None, low=-np.inf, high=np.inf, is_symmetric=False, **kwargs):
41
# Init from abstract distribution class
42
super().__init__(is_symmetric=is_symmetric, **kwargs)
43
0 commit comments