gh-108322: Optimize statistics.NormalDist.samples() (gh-108324)

This commit is contained in:
Raymond Hettinger 2023-08-27 08:59:40 -05:00 committed by GitHub
parent 09343dba44
commit 042aa88bcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 5 deletions

View file

@ -828,6 +828,11 @@ of applications in statistics.
number generator. This is useful for creating reproducible results,
even in a multi-threading context.
.. versionchanged:: 3.13
Switched to a faster algorithm. To reproduce samples from previous
versions, use :func:`random.seed` and :func:`random.gauss`.
.. method:: NormalDist.pdf(x)
Using a `probability density function (pdf)