Package csb :: Package statistics :: Package samplers :: Package mc :: Class AbstractSwapCommunicator
[frames] | no frames]

Class AbstractSwapCommunicator

source code

object --+
         |
        AbstractSwapCommunicator
Known Subclasses:

Holds all the information which needs to be communicated between distinct swap substeps.

Nested Classes
  __metaclass__
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods
 
__init__(self, param_info, proposal1, proposal2)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

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

Class Variables
  __abstractmethods__ = frozenset([])
Properties
  acceptance_probability
  accepted
  proposal1
  proposal2
  sampler1
  sampler2
  state1
  state2

Inherited from object: __class__

Method Details

__init__(self, param_info, proposal1, proposal2)
(Constructor)

source code 

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

Parameters:
  • param_info (AbstractSwapParameterInfo) - ParameterInfo instance holding swap parameters
  • proposal1 (State) - Proposal state for first sampler
  • proposal2 (State) - Proposal state for second sampler
Overrides: object.__init__
(inherited documentation)

Property Details

acceptance_probability

Get Method:
unreachable.acceptance_probability(self)
Set Method:
unreachable.acceptance_probability(self, value)

accepted

Get Method:
unreachable.accepted(self)
Set Method:
unreachable.accepted(self, value)

proposal1

Get Method:
unreachable.proposal1(self)

proposal2

Get Method:
unreachable.proposal2(self)

sampler1

Get Method:
unreachable.sampler1(self)

sampler2

Get Method:
unreachable.sampler2(self)

state1

Get Method:
unreachable.state1(self)

state2

Get Method:
unreachable.state2(self)