|
||||||||||
| 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
public abstract class AbstractBurnInTest
This abstract class implements some of the methods of BurnInTest to
alleviate the implementation of efficient and new burn-in tests.
| Field Summary | |
|---|---|
protected DoubleList[] |
values
This array contains all values that will be set via BurnInTest.setValue(double). |
| Constructor Summary | |
|---|---|
protected |
AbstractBurnInTest(int starts)
This is the main constructor that creates a burn-in test for a specified number of Gibbs sampling starts. |
protected |
AbstractBurnInTest(StringBuffer rep)
This is the constructor for the Storable interface. |
| Method Summary | |
|---|---|
protected abstract int |
computeLengthOfBurnIn()
Computes and returns the length of the burn-in phase using the values from BurnInTest.setValue(double). |
protected abstract StringBuffer |
getFurtherInformation()
This method returns further information for the AbstractBurnInTest. |
int |
getLengthOfBurnIn()
Computes and returns the length of the burn-in phase using the values from BurnInTest.setValue(double). |
protected abstract String |
getXMLTag()
This method returns the XML tag that is used in toXML() and
AbstractBurnInTest(StringBuffer). |
void |
resetAllValues()
This method can be used to remove all values from the internal memory. |
void |
setCurrentSamplingIndex(int index)
This method sets the value of the current sampling. |
protected abstract void |
setFurtherInformation(StringBuffer xml)
This method sets further information for the AbstractBurnInTest. |
void |
setValue(double val)
This method can be used to fill the internal memory with the values that will be used to determine the length of the burn-in phase. |
StringBuffer |
toXML()
This method returns an XML representation as StringBuffer of an
instance of the implementing class. |
| Methods inherited from class de.jstacs.models.mixture.gibbssampling.BurnInTest |
|---|
clone, getInstanceName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DoubleList[] values
BurnInTest.setValue(double). The index of the array element
denotes the sampling index.
| Constructor Detail |
|---|
protected AbstractBurnInTest(int starts)
starts - the number of Gibbs sampling starts
protected AbstractBurnInTest(StringBuffer rep)
throws NonParsableException
Storable interface.
rep - the XML representation
NonParsableException - if the StringBuffer could not be parsed| Method Detail |
|---|
public final void resetAllValues()
BurnInTest
resetAllValues in class BurnInTestpublic final void setCurrentSamplingIndex(int index)
BurnInTestBurnInTest.setValue(double) to a sampling.
setCurrentSamplingIndex in class BurnInTestindex - the index of the samplingpublic final void setValue(double val)
BurnInTest
setValue in class BurnInTestval - the valuepublic final StringBuffer toXML()
StorableStringBuffer of an
instance of the implementing class.
protected abstract String getXMLTag()
toXML() and
AbstractBurnInTest(StringBuffer).
toXML()
and AbstractBurnInTest(StringBuffer)protected abstract StringBuffer getFurtherInformation()
AbstractBurnInTest. It enables to store test specific data via
the method toXML(). toXML().
protected abstract void setFurtherInformation(StringBuffer xml)
throws NonParsableException
AbstractBurnInTest.
It enables to load test specific data in the constructor
AbstractBurnInTest(StringBuffer). AbstractBurnInTest(StringBuffer).
xml - contains further information in XML format
NonParsableException - if the StringBuffer could not be parsedpublic final int getLengthOfBurnIn()
BurnInTestBurnInTest.setValue(double).
getLengthOfBurnIn in class BurnInTestprotected abstract int computeLengthOfBurnIn()
BurnInTest.setValue(double). This method is used by
getLengthOfBurnIn(). The result is stored in
an internal variable to avoid multiple meaningless assessments.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||