File size: 1,939 Bytes
7885a28 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
"""
======================================================
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"]
|