distributions.py 803 B

123456789101112131415161718192021222324
  1. #
  2. # Author: Travis Oliphant 2002-2011 with contributions from
  3. # SciPy Developers 2004-2011
  4. #
  5. # NOTE: To look at history using `git blame`, use `git blame -M -C -C`
  6. # instead of `git blame -Lxxx,+x`.
  7. #
  8. from ._distn_infrastructure import (rv_discrete, rv_continuous, rv_frozen)
  9. from . import _continuous_distns
  10. from . import _discrete_distns
  11. from ._continuous_distns import *
  12. from ._levy_stable import levy_stable
  13. from ._discrete_distns import *
  14. from ._entropy import entropy
  15. # For backwards compatibility e.g. pymc expects distributions.__all__.
  16. __all__ = ['rv_discrete', 'rv_continuous', 'rv_histogram', 'entropy']
  17. # Add only the distribution names, not the *_gen names.
  18. __all__ += _continuous_distns._distn_names
  19. __all__ += ['levy_stable']
  20. __all__ += _discrete_distns._distn_names