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
           
 
Fields inherited from class org.omegahat.Simulation.MCMC.Expressions.ExpressionMarkovProposal
debug
 
Fields inherited from class org.omegahat.Simulation.MCMC.Expressions.ExpressionModel
environment, model
 
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)
           
 
Method Summary
 double conditionalPDF(java.lang.Object to, java.lang.Object from)
           
protected  org.omegahat.Simulation.MCMC.Expressions.SearchPath createPath(MCMCStateDatabase db)
           
protected  void doParsing()
           
 double logConditionalPDF(java.lang.Object to, java.lang.Object from)
           
 double logTransitionProbability(java.lang.Object fromState, java.lang.Object toState)
          Convenience method for computing the log probability of proposing a move.
 double logUnnormalizedConditionalPDF(java.lang.Object to, java.lang.Object from)
           
 double transitionProbability(java.lang.Object from, java.lang.Object to)
          Convenience method for computing the probability of proposing a move.
 double unnormalizedConditionalPDF(java.lang.Object to, java.lang.Object from)
           
 
Methods inherited from class org.omegahat.Simulation.MCMC.Expressions.ExpressionMarkovProposal
debug, debug, generate
 
Methods inherited from class org.omegahat.Simulation.MCMC.Expressions.ExpressionModel
databases, model, model
 
Methods inherited from interface org.omegahat.Probability.Distributions.ConditionalGenerator
generate
 

Field Detail

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
Constructor Detail

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
Method Detail

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