|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.sampling.AbstractBurnInTest
de.jstacs.sampling.VarianceRatioBurnInTest
public class VarianceRatioBurnInTest
In this class the Variance-Ratio method of Gelman and Rubin is implemented to test the length of the burn-in phase of a multi-chain Gibbs Sampling (number of chains >2). The number of initial iterations is calculated by comparing the variances between the different chains with the variances within the chains. The method returns the same length of the burn-in for all sampled chains.
| Field Summary |
|---|
| Fields inherited from class de.jstacs.sampling.AbstractBurnInTest |
|---|
values |
| Constructor Summary | |
|---|---|
VarianceRatioBurnInTest(StringBuffer rep)
The standard constructor for the Storable interface. |
|
VarianceRatioBurnInTest(VarianceRatioBurnInTestParameterSet parameters)
Creates a new VarianceRatioBurnInTest instance. |
|
| Method Summary | |
|---|---|
protected int |
computeLengthOfBurnIn()
Computes and returns the length of the burn-in phase given by the Variance-Ratio burn-in test. |
protected StringBuffer |
getFurtherInformation()
This method returns further information for the AbstractBurnInTest. |
String |
getInstanceName()
Returns a short description of the burn-in test. |
protected String |
getXMLTag()
This method returns the XML tag that is used in AbstractBurnInTest.toXML() and
AbstractBurnInTest.AbstractBurnInTest(StringBuffer). |
protected void |
setFurtherInformation(StringBuffer xml)
This method sets further information for the AbstractBurnInTest. |
| Methods inherited from class de.jstacs.sampling.AbstractBurnInTest |
|---|
clone, getCurrentParameterSet, getLengthOfBurnIn, resetAllValues, setCurrentSamplingIndex, setValue, toXML |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VarianceRatioBurnInTest(VarianceRatioBurnInTestParameterSet parameters)
throws CloneNotSupportedException
VarianceRatioBurnInTest instance.
parameters - set of parameters
CloneNotSupportedException - if the parameters can not be cloned
public VarianceRatioBurnInTest(StringBuffer rep)
throws NonParsableException
Storable interface.
Creates a new VarianceRatioBurnInTest instance out of a
StringBuffer.
rep - the StringBuffer
NonParsableException - if the StringBuffer can not be parsed| Method Detail |
|---|
protected String getXMLTag()
AbstractBurnInTestAbstractBurnInTest.toXML() and
AbstractBurnInTest.AbstractBurnInTest(StringBuffer).
getXMLTag in class AbstractBurnInTestAbstractBurnInTest.toXML()
and AbstractBurnInTest.AbstractBurnInTest(StringBuffer)protected StringBuffer getFurtherInformation()
AbstractBurnInTestAbstractBurnInTest. It enables to store test specific data via
the method AbstractBurnInTest.toXML(). AbstractBurnInTest.toXML().
getFurtherInformation in class AbstractBurnInTest
protected void setFurtherInformation(StringBuffer xml)
throws NonParsableException
AbstractBurnInTestAbstractBurnInTest.
It enables to load test specific data in the constructor
AbstractBurnInTest.AbstractBurnInTest(StringBuffer). AbstractBurnInTest.AbstractBurnInTest(StringBuffer).
setFurtherInformation in class AbstractBurnInTestxml - contains further information in XML format
NonParsableException - if the StringBuffer could not be parsedpublic String getInstanceName()
BurnInTest
protected int computeLengthOfBurnIn()
computeLengthOfBurnIn in class AbstractBurnInTestAbstractBurnInTest.computeLengthOfBurnIn()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||