scikit-hep / hepstats

Statistics tools and utilities.
https://scikit-hep.org/hepstats/
71 stars 15 forks source link

Hypotests docs: error with non-negative scale when generating random points #72

Closed amanmdesai closed 2 years ago

amanmdesai commented 2 years ago

At present : bkg = np.random.exponential(-1/2, 300) uses a non-negative scale which results in error.

Solution: According to the numpy docs, the scale must be non-negative. Link

amanmdesai commented 2 years ago

I have included the changes in #71

amanmdesai commented 2 years ago

Done