Skip to content

Commit

Permalink
ENH: Speed up truncnorm's ppf()and rvs() methods for scipygh-11299.
Browse files Browse the repository at this point in the history
Addresses scipygh-11299.
Adds an rvs() method to truncnorm modelled on geninvgauss_gen.rvs().
Replaced np.vectorize'd truncnorm functions with _scalar versions.
Any broadcasting is handling inside the distributions methods.
This enables generating many ppf values for the same shape a.b parameters
in a single call, thus making the truncnorm delta overhead calculation
just once.
  • Loading branch information
pvanmulbregt committed Jan 20, 2020
1 parent c3ad98b commit 5e257bb
Show file tree
Hide file tree
Showing 3 changed files with 470 additions and 174 deletions.
Loading

0 comments on commit 5e257bb

Please sign in to comment.