You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When truncating a Normal distribution with zero variance and mean equal to the lower bound of the truncated, evaluating rand will result in infinite compilation time. An equivalent operation with the upper bound of the truncated will return the value for the upper bound as expected.
Example:
using Distributions
rand(truncated(Normal(1, 0), 0, 1)) # Expected output: 1rand(truncated(Normal(0, 0), 0, 1)) # Expected output: 0# Note that when the expected output is 0 we get infinite compilation time.
The text was updated successfully, but these errors were encountered:
When truncating a
Normal
distribution with zero variance and mean equal to the lower bound of thetruncated
, evaluatingrand
will result in infinite compilation time. An equivalent operation with the upper bound of thetruncated
will return the value for the upper bound as expected.Example:
The text was updated successfully, but these errors were encountered: