up follow livre
This commit is contained in:
parent
b4b4398bb0
commit
3a7a3849ae
12242 changed files with 2564461 additions and 6914 deletions
73
venv/lib/python3.13/site-packages/scipy/stats/sampling.py
Normal file
73
venv/lib/python3.13/site-packages/scipy/stats/sampling.py
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
"""
|
||||
======================================================
|
||||
Random Number Generators (:mod:`scipy.stats.sampling`)
|
||||
======================================================
|
||||
|
||||
.. currentmodule:: scipy.stats.sampling
|
||||
|
||||
This module contains a collection of random number generators to sample
|
||||
from univariate continuous and discrete distributions. It uses the
|
||||
implementation of a C library called "UNU.RAN". The only exception is
|
||||
RatioUniforms, which is a pure Python implementation of the
|
||||
Ratio-of-Uniforms method.
|
||||
|
||||
Generators Wrapped
|
||||
==================
|
||||
|
||||
For continuous distributions
|
||||
----------------------------
|
||||
|
||||
.. autosummary::
|
||||
:toctree: generated/
|
||||
|
||||
NumericalInverseHermite
|
||||
NumericalInversePolynomial
|
||||
TransformedDensityRejection
|
||||
SimpleRatioUniforms
|
||||
RatioUniforms
|
||||
|
||||
For discrete distributions
|
||||
--------------------------
|
||||
|
||||
.. autosummary::
|
||||
:toctree: generated/
|
||||
|
||||
DiscreteAliasUrn
|
||||
DiscreteGuideTable
|
||||
|
||||
Warnings / Errors used in :mod:`scipy.stats.sampling`
|
||||
-----------------------------------------------------
|
||||
|
||||
.. autosummary::
|
||||
:toctree: generated/
|
||||
|
||||
UNURANError
|
||||
|
||||
|
||||
Generators for pre-defined distributions
|
||||
========================================
|
||||
|
||||
To easily apply the above methods for some of the continuous distributions
|
||||
in :mod:`scipy.stats`, the following functionality can be used:
|
||||
|
||||
.. autosummary::
|
||||
:toctree: generated/
|
||||
|
||||
FastGeneratorInversion
|
||||
|
||||
"""
|
||||
from ._sampling import FastGeneratorInversion, RatioUniforms # noqa: F401
|
||||
from ._unuran.unuran_wrapper import ( # noqa: F401
|
||||
TransformedDensityRejection,
|
||||
DiscreteAliasUrn,
|
||||
DiscreteGuideTable,
|
||||
NumericalInversePolynomial,
|
||||
NumericalInverseHermite,
|
||||
SimpleRatioUniforms,
|
||||
UNURANError
|
||||
)
|
||||
|
||||
__all__ = ["NumericalInverseHermite", "NumericalInversePolynomial",
|
||||
"TransformedDensityRejection", "SimpleRatioUniforms",
|
||||
"RatioUniforms", "DiscreteAliasUrn", "DiscreteGuideTable",
|
||||
"UNURANError", "FastGeneratorInversion"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue