org.omegahat.Simulation.MCMC.Expressions
Class ExpressionGibbsSampler
org.omegahat.Simulation.MCMC.Expressions.ExpressionModel
|
+--org.omegahat.Simulation.MCMC.Expressions.ExpressionGibbsSampler
- All Implemented Interfaces:
- GibbsSampler, MarkovChain
- public abstract class ExpressionGibbsSampler
- extends ExpressionModel
- implements GibbsSampler
;
A placeholder for a Gibbs Sampler based on a specified model
expression. It does not yet have the code to compute the correct
full conditional distributions that are needed to actually perform
the sampling, hence it is marked as abstract
.
Field Summary |
boolean |
debug
|
org.omegahat.Simulation.MCMC.Expressions.MultiLineModelFormula |
expressions
|
Constructor Summary |
ExpressionGibbsSampler(org.omegahat.Simulation.MCMC.Expressions.MultiLineModelFormula model,
org.omegahat.Simulation.MCMC.Expressions.Database environment)
|
ExpressionGibbsSampler(java.lang.String[] model,
org.omegahat.Simulation.MCMC.Expressions.Database environment)
|
ExpressionGibbsSampler(java.lang.String model,
org.omegahat.Simulation.MCMC.Expressions.Database environment)
|
Method Summary |
protected abstract void |
computeFullConditionalExpressions()
;
Parse the model specification and create expressions that will
compute the full conditional distribution of each component. |
boolean |
debug()
|
boolean |
debug(boolean debug)
|
java.lang.Object |
generate(java.lang.Object obj)
|
debug
public boolean debug
expressions
public org.omegahat.Simulation.MCMC.Expressions.MultiLineModelFormula expressions
ExpressionGibbsSampler
public ExpressionGibbsSampler(org.omegahat.Simulation.MCMC.Expressions.MultiLineModelFormula model,
org.omegahat.Simulation.MCMC.Expressions.Database environment)
throws java.lang.Exception
ExpressionGibbsSampler
public ExpressionGibbsSampler(java.lang.String model,
org.omegahat.Simulation.MCMC.Expressions.Database environment)
throws java.lang.Exception
ExpressionGibbsSampler
public ExpressionGibbsSampler(java.lang.String[] model,
org.omegahat.Simulation.MCMC.Expressions.Database environment)
throws java.lang.Exception
debug
public boolean debug()
debug
public boolean debug(boolean debug)
computeFullConditionalExpressions
protected abstract void computeFullConditionalExpressions()
- ;
Parse the model specification and create expressions that will
compute the full conditional distribution of each component.
generate
public java.lang.Object generate(java.lang.Object obj)