sampling.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. """
  2. ======================================================
  3. Random Number Generators (:mod:`scipy.stats.sampling`)
  4. ======================================================
  5. .. currentmodule:: scipy.stats.sampling
  6. This module contains a collection of random number generators to sample
  7. from univariate continuous and discrete distributions. It uses the
  8. implementation of a C library called "UNU.RAN".
  9. Generators Wrapped
  10. ==================
  11. For continuous distributions
  12. ----------------------------
  13. .. autosummary::
  14. :toctree: generated/
  15. NumericalInverseHermite
  16. NumericalInversePolynomial
  17. TransformedDensityRejection
  18. SimpleRatioUniforms
  19. For discrete distributions
  20. --------------------------
  21. .. autosummary::
  22. :toctree: generated/
  23. DiscreteAliasUrn
  24. DiscreteGuideTable
  25. Warnings / Errors used in :mod:`scipy.stats.sampling`
  26. -----------------------------------------------------
  27. .. autosummary::
  28. :toctree: generated/
  29. UNURANError
  30. """
  31. from ._unuran.unuran_wrapper import ( # noqa: F401
  32. TransformedDensityRejection,
  33. DiscreteAliasUrn,
  34. DiscreteGuideTable,
  35. NumericalInversePolynomial,
  36. NumericalInverseHermite,
  37. SimpleRatioUniforms,
  38. UNURANError
  39. )