|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.models.mixture.gibbssampling.BurnInTest
de.jstacs.models.mixture.gibbssampling.AbstractBurnInTest
de.jstacs.models.mixture.gibbssampling.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.models.mixture.gibbssampling.AbstractBurnInTest |
|---|
values |
| Constructor Summary | |
|---|---|
VarianceRatioBurnInTest(int starts)
Constructor for initialization of the VarianceRatioBurnInTest
given a fixed threshold value of 1.2. |
|
VarianceRatioBurnInTest(int starts,
double t)
Constructor for initialization of the VarianceRatioBurnInTest. |
|
VarianceRatioBurnInTest(StringBuffer rep)
The standard constructor for the interface Storable. |
|
| 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 return 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.models.mixture.gibbssampling.AbstractBurnInTest |
|---|
getLengthOfBurnIn, resetAllValues, setCurrentSamplingIndex, setValue, toXML |
| Methods inherited from class de.jstacs.models.mixture.gibbssampling.BurnInTest |
|---|
clone |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VarianceRatioBurnInTest(int starts)
VarianceRatioBurnInTest
given a fixed threshold value of 1.2.
starts - the number of chains resulting from the number of starts of
the Gibbs Sampler, must be greater than 2
public VarianceRatioBurnInTest(int starts,
double t)
VarianceRatioBurnInTest.
starts - the number of chains resulting from the number of starts of
the Gibbs Sampler, must be greater than 2t - the threshold value for testing the end of the burn-in phase
with the Variance-Ratio burn-in test, the value has to be
greater than 1 since the tested potential scale reduction
factor R converges to 1computeLengthOfBurnIn()
public VarianceRatioBurnInTest(StringBuffer rep)
throws NonParsableException
Storable.
rep - the StringBuffer containing the model
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. The method 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.
The method 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
getInstanceName in class BurnInTestprotected int computeLengthOfBurnIn()
computeLengthOfBurnIn in class AbstractBurnInTestAbstractBurnInTest.computeLengthOfBurnIn()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||