Package gmisclib :: Module mcmc_indexclass :: Class PriorProbDist
[frames] | no frames]

Class PriorProbDist

source code


This is a map from a regular expression to a callable object. It's used to find which element of the PriorProbDist applies to a particular parameter.

Instance Methods
 
__init__(self, guesses)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__getitem__(self, fkey)
Look up a string against the stored list of patterns.
source code
whatever you get from the final component of a guesses tuple. This is normally a float.
getprobe(self, fkey) 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, guesses)
(Constructor)

source code 

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

Parameters:
  • guesses (list( (str, mcmc_idxr.probdist_c, R) ) where R is an optional float.) - a list of associations between a pattern and a probability distribution. If R exists, it is a float used for probing for function roughness.
Overrides: object.__init__

__getitem__(self, fkey)
(Indexing operator)

source code 

Look up a string against the stored list of patterns. Return the coresponding callable.

Parameters:
  • fkey (str @rtype whatever is the middle component of a guesses tuple. This is normally an instance of mcmc_idxr.probdist_c.) - this takes the key formatted as a string, not as a tuple.

getprobe(self, fkey)

source code 
Parameters:
  • fkey (str) - this takes the key formatted as a string, not as a tuple.
Returns: whatever you get from the final component of a guesses tuple. This is normally a float.