distributions.py 819 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 __future__ import division, print_function, absolute_import
  9. from ._distn_infrastructure import (entropy, rv_discrete, rv_continuous,
  10. rv_frozen)
  11. from . import _continuous_distns
  12. from . import _discrete_distns
  13. from ._continuous_distns import *
  14. from ._discrete_distns import *
  15. # For backwards compatibility e.g. pymc expects distributions.__all__.
  16. __all__ = ['entropy', 'rv_discrete', 'rv_continuous', 'rv_histogram']
  17. # Add only the distribution names, not the *_gen names.
  18. __all__ += _continuous_distns._distn_names
  19. __all__ += _discrete_distns._distn_names