org.omegahat.Simulation.MCMC.Expressions
Class ExpressionGeneralProposal
org.omegahat.Simulation.MCMC.Expressions.ExpressionModel
|
+--org.omegahat.Simulation.MCMC.Expressions.ExpressionMarkovProposal
|
+--org.omegahat.Simulation.MCMC.Expressions.ExpressionGeneralProposal
- All Implemented Interfaces:
- ConditionalDensity, ConditionalGenerator, GeneralProposal, MarkovProposal
- public class ExpressionGeneralProposal
- extends ExpressionMarkovProposal
- implements GeneralProposal
Field Summary |
protected org.omegahat.Simulation.MCMC.Expressions.MethodCall[] |
calls
|
protected org.omegahat.Simulation.MCMC.Expressions.List[] |
LHSarguments
|
protected org.omegahat.Simulation.MCMC.Expressions.List[] |
RHSarguments
|
Constructor Summary |
ExpressionGeneralProposal(org.omegahat.Simulation.MCMC.Expressions.MultiLineModelFormula model,
org.omegahat.Simulation.MCMC.Expressions.Database environment)
|
ExpressionGeneralProposal(java.lang.String[] model,
org.omegahat.Simulation.MCMC.Expressions.Database environment)
|
ExpressionGeneralProposal(java.lang.String model,
org.omegahat.Simulation.MCMC.Expressions.Database environment)
|
calls
protected org.omegahat.Simulation.MCMC.Expressions.MethodCall[] calls
RHSarguments
protected org.omegahat.Simulation.MCMC.Expressions.List[] RHSarguments
LHSarguments
protected org.omegahat.Simulation.MCMC.Expressions.List[] LHSarguments
ExpressionGeneralProposal
public ExpressionGeneralProposal(org.omegahat.Simulation.MCMC.Expressions.MultiLineModelFormula model,
org.omegahat.Simulation.MCMC.Expressions.Database environment)
throws java.lang.Exception
ExpressionGeneralProposal
public ExpressionGeneralProposal(java.lang.String model,
org.omegahat.Simulation.MCMC.Expressions.Database environment)
throws java.lang.Exception
ExpressionGeneralProposal
public ExpressionGeneralProposal(java.lang.String[] model,
org.omegahat.Simulation.MCMC.Expressions.Database environment)
throws java.lang.Exception
doParsing
protected void doParsing()
createPath
protected org.omegahat.Simulation.MCMC.Expressions.SearchPath createPath(MCMCStateDatabase db)
unnormalizedConditionalPDF
public double unnormalizedConditionalPDF(java.lang.Object to,
java.lang.Object from)
logUnnormalizedConditionalPDF
public double logUnnormalizedConditionalPDF(java.lang.Object to,
java.lang.Object from)
conditionalPDF
public double conditionalPDF(java.lang.Object to,
java.lang.Object from)
- Specified by:
conditionalPDF
in interface ConditionalDensity
logConditionalPDF
public double logConditionalPDF(java.lang.Object to,
java.lang.Object from)
- Specified by:
logConditionalPDF
in interface ConditionalDensity
transitionProbability
public double transitionProbability(java.lang.Object from,
java.lang.Object to)
- Description copied from interface:
GeneralProposal
- Convenience method for computing the probability of proposing a move.
Probably implemented as:
double transitionProbability( Object from, Object to );
{
return conditionalPDF( to, from );
}
- Specified by:
transitionProbability
in interface GeneralProposal
logTransitionProbability
public double logTransitionProbability(java.lang.Object fromState,
java.lang.Object toState)
- Description copied from interface:
GeneralProposal
- Convenience method for computing the log probability of proposing a move.
Probably implemented as:
double logTransitionProbability( Object from, Object to );
{
return logConditionalPDF( to, from );
}
- Specified by:
logTransitionProbability
in interface GeneralProposal