Home | Trees | Indices | Help |
|
---|
|
object --+ | AbstractDensity
Defines the interface and common operations for all probability density functions. This is a generic class which can operate on parameters of any type (e.g. simple floats or custom parameter objects).
Subclasses must complete the implementation by implementing the AbstractDensity.log_prob method. Subclasses could also consider--but are not obliged to--override the AbstractDensity.random method. If any of the density parameters need validation, subclasses are expected to override the AbstractDensity._validate method and raise ParameterValueError on validation failure. Note that implementing parameter validation in property setters has almost no effect and is discouraged.
Nested Classes | |
__metaclass__ Metaclass for defining Abstract Base Classes (ABCs). |
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
array |
|
||
|
|||
array |
|
||
|
|||
|
|||
Inherited from |
Class Variables | |
__abstractmethods__ =
|
Properties | |
estimator | |
parameters Get a list of all distribution parameter names. |
|
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
str(x)
|
Estimate and load the parameters of the distribution from sample
|
Evaluate the probability of observing values
|
Evaluate the logarithm of the probability of observing values
|
Generate random samples from the probability distribution.
|
Property Details |
estimator
|
parametersGet a list of all distribution parameter names.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Apr 16 11:31:44 2018 | http://epydoc.sourceforge.net |