public class MCMC extends java.lang.Object implements DefaultReportable, java.lang.Runnable, ObjectSampler, Optimization
Constructor and Description |
---|
MCMC(MCMCSampler s) |
Modifier and Type | Method and Description |
---|---|
void |
addBlock(MCMCBlock newblock)
Adds a block of parameters for which cycle interations of MCMC will be performed.
|
void |
addObjectToSample(java.lang.String s) |
void |
addOptimizationListener(OptimizationListener L) |
int |
getAcceptCount() |
int |
getBurnIn(int n) |
java.util.LinkedList |
getChain() |
DefaultReporter |
getDefaultReporter(java.lang.String key) |
java.util.Set |
getDefaultReporters() |
DblParamSet |
getEstimate()
Returns the average of each parameter taken over the chain.
|
DblParamSet |
getEstimate(int N)
Returns the average of each parameter taken over the last N elements of the chain.
|
DblParamSet |
getInitialGuess() |
int |
getMaxIterations(int n) |
java.util.LinkedList |
getObjectChain()
Returns a chain of sampled objects.
|
java.lang.String[] |
getObjectsToSample() |
int |
getRejectCount() |
DblParamSet |
getVariance()
Returns the variance of each parameter taken over the chain.
|
void |
haltSolution(boolean x) |
boolean |
isSamplingObject(java.lang.String s) |
boolean |
isStillRunning() |
void |
removeAllBlocks() |
void |
removeBlock(MCMCBlock rmblock) |
void |
removeObjectToSample(java.lang.String s) |
void |
removeOptimizationListener(OptimizationListener L) |
void |
run() |
void |
setBurnIn(int n) |
void |
setChainLength(int x) |
void |
setInitialGuess(DblParamSet guess) |
void |
setMaxIterations(int n) |
void |
setObjectsToSample(java.lang.String[] S) |
void |
solve() |
public MCMC(MCMCSampler s)
public void addOptimizationListener(OptimizationListener L)
addOptimizationListener
in interface Optimization
public void removeOptimizationListener(OptimizationListener L)
removeOptimizationListener
in interface Optimization
public void addObjectToSample(java.lang.String s)
addObjectToSample
in interface ObjectSampler
public void removeObjectToSample(java.lang.String s)
removeObjectToSample
in interface ObjectSampler
public java.lang.String[] getObjectsToSample()
getObjectsToSample
in interface ObjectSampler
public boolean isSamplingObject(java.lang.String s)
isSamplingObject
in interface ObjectSampler
public void setObjectsToSample(java.lang.String[] S)
setObjectsToSample
in interface ObjectSampler
public void haltSolution(boolean x)
public DefaultReporter getDefaultReporter(java.lang.String key)
getDefaultReporter
in interface DefaultReportable
public java.util.Set getDefaultReporters()
getDefaultReporters
in interface DefaultReportable
public void setInitialGuess(DblParamSet guess)
public DblParamSet getInitialGuess()
public java.util.LinkedList getChain()
public java.util.LinkedList getObjectChain()
public void setChainLength(int x)
public DblParamSet getEstimate()
public DblParamSet getEstimate(int N)
public DblParamSet getVariance()
public void addBlock(MCMCBlock newblock)
public void setBurnIn(int n)
public void setMaxIterations(int n)
public int getBurnIn(int n)
public int getMaxIterations(int n)
public void removeBlock(MCMCBlock rmblock)
public void removeAllBlocks()
public int getRejectCount()
public int getAcceptCount()
public void run()
run
in interface java.lang.Runnable
public boolean isStillRunning()
public void solve() throws SnifflibGraphicsException
SnifflibGraphicsException
Copyright © 2011, 2013. Daniel P. Dougherty