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

Class LogNormal

source code


Lognormal distribution

Instance Methods
 
__init__(self, mu, sigma)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
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
 
__doc__(self) source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, mu, sigma)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • sigma (float) - The standard deviation of the log of the resulting distribution.
  • mu (float) - The median of the resulting distribution, not the log of the median.
Raises:
  • ValueError - Bad parameters for the distribution.
Overrides: object.__init__

__call__(self)
(Call operator)

source code 

Sample from the probability distribution.

Returns: float
the sample
Overrides: probdist_c.__call__
(inherited documentation)

logdens(self, x)

source code 

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

Parameters:
  • x - the position where the density should be evaluated.
Returns: float
log(density)
Raises:
Overrides: probdist_c.logdens
(inherited documentation)

__doc__(self)

source code 
Decorators:
  • @property