[frames] | no frames]

# Class T_acceptor

source code

This class implements a normal Metropolis-Hastings acceptance of steps.

Instance Methods

 __init__(self, T=1.0) You can change the temperature to do simulated annealing. source code
float
 T(self) Returns: the system temperature. source code
bool
 __call__(self, delta) Accept a step or not? source code
float
 jitter(self) In the acoustic distances paper, it is called $\bar{delta}$. (Inherited from gmisclib.mcmc.acceptor_base) source code

 probe(self, currentpos, stepper) This is a hook for a special case where you are optimizing a random function or one that is deterministic, but very rough, and you don't care about the small-scale structure. (Inherited from gmisclib.mcmc.acceptor_base) source code

 reset(self) In order to make the overal algorithm asymptotically a Markovian, we need to make sure that (asymptotically) the acceptor function depends only on long-term averages, not on recent history. (Inherited from gmisclib.mcmc.acceptor_base) source code

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

 Instance Variables last_probe A pair of position_base instances showing the position and logP at each end of the most recent probe for a discontinuity. (Inherited from gmisclib.mcmc.acceptor_base)
 Properties Inherited from object: __class__
 Method Details

### __init__(self, T=1.0)(Constructor)

source code

You can change the temperature to do simulated annealing.

Parameters:
• T (float) - temperature
Overrides: object.__init__

### T(self)

source code
Returns: float
the system temperature.
Overrides: acceptor_base.T

### __call__(self, delta)(Call operator)

source code

Accept a step or not?

Parameters:
• delta (float) - The proposed step gives delta as the change in log(probability).
Returns: bool
should it be accepted or not?
Overrides: acceptor_base.__call__

 Generated by Epydoc 3.0.1 on Thu Sep 22 04:25:06 2011 http://epydoc.sourceforge.net