org.omegahat.Simulation.MCMC.Proposals
Class HastingsCoupledIteratedProposal
java.lang.Object
|
+--org.omegahat.Simulation.MCMC.Proposals.HastingsCoupledIteratedProposal
- All Implemented Interfaces:
- HastingsCoupledProposal, TimeDependentProposal
- public class HastingsCoupledIteratedProposal
- extends java.lang.Object
- implements HastingsCoupledProposal, TimeDependentProposal
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 |
int |
getTime()
Get the time |
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)
Convenience method for computing the log probability of proposing a move. |
int |
numChains()
|
void |
resetTime()
Reset time to 0 |
void |
setProposal(int which,
HastingsCoupledProposal what,
int freq)
|
void |
setProposals(HastingsCoupledProposal[] what,
int[] freqs)
|
void |
timeInc()
Increment time |
double |
transitionProbability(java.lang.Object from,
java.lang.Object to,
int which,
MultiState stateVector)
Convenience method for computing the probability of proposing a move. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
proposals
protected HastingsCoupledProposal[] proposals
proposalFreqs
protected int[] proposalFreqs
currentProposal
protected int currentProposal
currentCount
protected int currentCount
time
protected int time
debug
public boolean debug
HastingsCoupledIteratedProposal
protected HastingsCoupledIteratedProposal(int nProposal)
HastingsCoupledIteratedProposal
public HastingsCoupledIteratedProposal(HastingsCoupledProposal[] proposalList,
int[] proposalFreqs)
numChains
public int numChains()
setProposal
public void setProposal(int which,
HastingsCoupledProposal what,
int freq)
setProposals
public void setProposals(HastingsCoupledProposal[] what,
int[] freqs)
transitionProbability
public double transitionProbability(java.lang.Object from,
java.lang.Object to,
int which,
MultiState stateVector)
- Convenience method for computing the probability of proposing a move.
- Specified by:
transitionProbability
in interface HastingsCoupledProposal
- Following copied from interface:
org.omegahat.Simulation.MCMC.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)
- Convenience method for computing the log probability of proposing a move.
- Specified by:
logTransitionProbability
in interface HastingsCoupledProposal
- Following copied from interface:
org.omegahat.Simulation.MCMC.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
conditionalPDF
public double conditionalPDF(java.lang.Object state,
java.lang.Object conditions,
int which,
MultiState stateVector)
- Description copied from interface:
HastingsCoupledProposal
- Computes the HastingsCoupled transition probability for one sub-state given the entire state vector
- Specified by:
conditionalPDF
in interface HastingsCoupledProposal
- Following copied from interface:
org.omegahat.Simulation.MCMC.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)
- Description copied from interface:
HastingsCoupledProposal
- Computes the HastingsCoupled transition probability for one sub-state given the entire state vector
- Specified by:
logConditionalPDF
in interface HastingsCoupledProposal
- Following copied from interface:
org.omegahat.Simulation.MCMC.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)
- Description copied from interface:
HastingsCoupledProposal
- Generate a new component state given the entire state vector
- Specified by:
generate
in interface HastingsCoupledProposal
- Following copied from interface:
org.omegahat.Simulation.MCMC.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
timeInc
public void timeInc()
- Description copied from interface:
TimeDependentProposal
- Increment time
- Specified by:
timeInc
in interface TimeDependentProposal
resetTime
public void resetTime()
- Description copied from interface:
TimeDependentProposal
- Reset time to 0
- Specified by:
resetTime
in interface TimeDependentProposal
getTime
public int getTime()
- Description copied from interface:
TimeDependentProposal
- Get the time
- Specified by:
getTime
in interface TimeDependentProposal