Package trunk :: Package BIP :: Package Bayes :: Package general :: Module bvariables :: Class __BayesD
[hide private]

Class __BayesD

source code

             object --+    
                      |    
              _BayesVar --+
                          |
scipy.stats.rv_discrete --+
                          |
                         __BayesD

Instance Methods [hide private]
 
__init__(self, priortype, pars, range, resolution=512)
Initializes random variable.
source code

Inherited from _BayesVar: __str__, add_data, get_posterior_sample, get_prior_dist, get_prior_sample

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, priortype, pars, range, resolution=512)
(Constructor)

source code 
Initializes random variable.
Parameters:
  • disttype - : must be a valid RNG class from scipy.stats
  • pars - : are the parameters of the distribution.
  • rang - : range of the variable support.
  • resolution - : resolution of the support.
Overrides: object.__init__
(inherited documentation)