• Luciano Paz's avatar
    Cap the values that Beta.random can generate. (#3924) · 7f307b91
    Luciano Paz authored
    * TST: Added test for the failing sampler
    * BUG: Make Beta.random to use the clipped random number generator
    * DOC: Added to release notes
    * Fix the PR link in the release notes
    * FIX: use scipy.stats and change ref_rand to point to clipped_beta_rvs
    * FIX: Use np.maximum and np.minimum to work with scalars and arrays
dist_math.py 17 KB