Package gmisclib :: Module mcmc_idxr :: Class probdist_c
[frames] | no frames]

Class probdist_c

source code


Instance Methods
float
__call__(self)
Sample from the probability distribution.
source code
float
logdens(self, x)
Return the log(density) of the probability distribution at x.
source code

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

Properties

Inherited from object: __class__

Method Details

__call__(self)
(Call operator)

source code 

Sample from the probability distribution.

Returns: float
the sample

logdens(self, x)

source code 

Return the log(density) of the probability distribution at x.

Parameters:
  • x (float) - the position where the density should be evaluated.
Returns: float
log(density)
Raises: