bundles / scipy latest / scipy / stats / _distribution_infrastructure / _Domain
ABCMeta
scipy.stats._distribution_infrastructure:_Domain
Signature
def _Domain ( ) Members
Summary
Representation of the applicable domain of a parameter or variable.
Extended Summary
A _Domain object is responsible for storing information about the domain of a parameter or variable, determining whether a value is within the domain (contains), and providing a text/mathematical representation of itself (__str__). Because the domain of a parameter/variable can have a complicated relationship with other parameters and variables of a distribution, _Domain itself does not try to represent all possibilities; in fact, it has no implementation and is meant for subclassing.
Attributes
symbols: dictA map from special numerical values to symbols for use in
__str__
Methods
contains(x)Determine whether the argument is contained within the domain (True) or not (False). Used for input validation.
get_numerical_endpoints()Gets the numerical values of the domain endpoints, which may have been defined symbolically or through a callable.
__str__()Returns a text representation of the domain (e.g.
[0, b)). Used for generating documentation.
Aliases
-
scipy.stats._distribution_infrastructure._Domain