org.omegahat.Simulation.MCMC.Proposals
Class KernelProposal
java.lang.Object
|
+--org.omegahat.Simulation.MCMC.Proposals.KernelProposal
- All Implemented Interfaces:
- HastingsCoupledProposal
- Direct Known Subclasses:
- AdaptiveKernelProposal, NormalDualKernelProposal, NormalKernelProposal
- public class KernelProposal
- extends java.lang.Object
- implements HastingsCoupledProposal
Method Summary |
double |
conditionalPDF(java.lang.Object state,
java.lang.Object conditions,
int which,
MultiState stateVector)
Computes the HastingsCoupled transition probability for one sub-state given the entire state vector |
java.lang.Object |
generate(java.lang.Object conditionals,
int which,
MultiState stateVector)
Generate a new component state given the entire state vector |
GeneralProposal |
getKernel()
|
PRNG |
getPRNG()
|
double |
logConditionalPDF(java.lang.Object state,
java.lang.Object conditions,
int which,
MultiState stateVector)
Computes the HastingsCoupled transition probability for one sub-state given the entire state vector |
double |
logTransitionProbability(java.lang.Object from,
java.lang.Object to,
int which,
MultiState stateVector)
Computes the HastingsCoupled transition probability for one sub-state given the entire state vector |
GeneralProposal |
setKernel(GeneralProposal kernel)
|
PRNG |
setPRNG(PRNG prng)
|
double |
transitionProbability(java.lang.Object from,
java.lang.Object to,
int which,
MultiState stateVector)
Computes the HastingsCoupled transition probability for one sub-state given the entire state vector |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
kernel
GeneralProposal kernel
prng
PRNG prng
KernelProposal
public KernelProposal()
KernelProposal
public KernelProposal(PRNG prng)
KernelProposal
public KernelProposal(GeneralProposal kernel,
PRNG prng)
getKernel
public GeneralProposal getKernel()
setKernel
public GeneralProposal setKernel(GeneralProposal kernel)
getPRNG
public PRNG getPRNG()
setPRNG
public PRNG setPRNG(PRNG prng)
conditionalPDF
public double conditionalPDF(java.lang.Object state,
java.lang.Object conditions,
int which,
MultiState stateVector)
- Computes the HastingsCoupled transition probability for one sub-state given the entire state vector
- Specified by:
conditionalPDF
in interface HastingsCoupledProposal
- Parameters:
conditions
- Current value of the component state being updatedstate
- Proposed state of the component state being updatedwhich
- index of the component state being updatedstateVector
- entire set of states, including the state being updated
logConditionalPDF
public double logConditionalPDF(java.lang.Object state,
java.lang.Object conditions,
int which,
MultiState stateVector)
- Computes the HastingsCoupled transition probability for one sub-state given the entire state vector
- Specified by:
logConditionalPDF
in interface HastingsCoupledProposal
- Parameters:
conditions
- Current value of the component state being updatedstate
- Proposed state of the component state being updatedwhich
- index of the component state being updatedstateVector
- entire set of states, including the state being updated
generate
public java.lang.Object generate(java.lang.Object conditionals,
int which,
MultiState stateVector)
- Generate a new component state given the entire state vector
- Specified by:
generate
in interface HastingsCoupledProposal
- Parameters:
conditions
- Current value of the component state being updatedwhich
- index of the component state being updatedstateVector
- entire set of states, including the state being updated
transitionProbability
public double transitionProbability(java.lang.Object from,
java.lang.Object to,
int which,
MultiState stateVector)
- Computes the HastingsCoupled transition probability for one sub-state given the entire state vector
- Specified by:
transitionProbability
in interface HastingsCoupledProposal
- Parameters:
from
- Current value of the component state being updatedto
- Proposed state of the component state being updatedwhich
- index of the component state being updatedstateVector
- entire set of states, including the state being updated
logTransitionProbability
public double logTransitionProbability(java.lang.Object from,
java.lang.Object to,
int which,
MultiState stateVector)
- Computes the HastingsCoupled transition probability for one sub-state given the entire state vector
- Specified by:
logTransitionProbability
in interface HastingsCoupledProposal
- Parameters:
from
- Current value of the component state being updatedto
- Proposed state of the component state being updatedwhich
- index of the component state being updatedstateVector
- entire set of states, including the state being updated