org.omegahat.Simulation.MCMC.Proposals
Class HastingsCoupledMixtureProposal
java.lang.Object
|
+--org.omegahat.Simulation.MCMC.Proposals.HastingsCoupledMixtureProposal
- All Implemented Interfaces:
- HastingsCoupledProposal
- public class HastingsCoupledMixtureProposal
- 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 |
double[] |
getProposalProbs()
|
HastingsCoupledProposal[] |
getProposals()
|
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. |
protected void |
normalize()
|
int |
numChains()
|
void |
setProposal(int which,
HastingsCoupledProposal what,
double prob)
|
void |
setProposals(HastingsCoupledProposal[] what,
double[] probs)
|
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
proposal_probs
protected double[] proposal_probs
normalized_probs
protected double[] normalized_probs
cumulative_probs
protected double[] cumulative_probs
prng
protected PRNG prng
HastingsCoupledMixtureProposal
public HastingsCoupledMixtureProposal(int nProposal,
PRNG prng)
HastingsCoupledMixtureProposal
public HastingsCoupledMixtureProposal(HastingsCoupledProposal[] proposalList,
double[] proposal_probs,
PRNG prng)
numChains
public int numChains()
setProposal
public void setProposal(int which,
HastingsCoupledProposal what,
double prob)
setProposals
public void setProposals(HastingsCoupledProposal[] what,
double[] probs)
getProposals
public HastingsCoupledProposal[] getProposals()
getProposalProbs
public double[] getProposalProbs()
normalize
protected void normalize()
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
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
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
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