|
||||||||||
| 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.SimpleBurnInTest
public class SimpleBurnInTest
This is a very simple test for the length of the burn-in phase. It returns for all samplings the length given in the constructor.
| Constructor Summary | |
|---|---|
SimpleBurnInTest(int burnInLength)
This is the main constructor that creates an instance of fixed burn-in length. |
|
SimpleBurnInTest(StringBuffer xml)
The standard constructor for the interface Storable. |
|
| Method Summary | |
|---|---|
String |
getInstanceName()
Returns a short description of the burn-in test. |
int |
getLengthOfBurnIn()
Computes and returns the length of the burn-in phase using the values from BurnInTest.setValue(double). |
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. |
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 of an instance of the implementing class. |
| 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 SimpleBurnInTest(int burnInLength)
burnInLength - the length of the burn-in
public SimpleBurnInTest(StringBuffer xml)
throws NonParsableException
Storable.
xml - the StringBuffer containing the model as
XML-representation
NonParsableException - if the StringBuffer can not be parsed| Method Detail |
|---|
public void setCurrentSamplingIndex(int index)
BurnInTestBurnInTest.setValue(double) to a sampling.
setCurrentSamplingIndex in class BurnInTestindex - the index of the samplingpublic void setValue(double val)
BurnInTest
setValue in class BurnInTestval - the valuepublic void resetAllValues()
BurnInTest
resetAllValues in class BurnInTestpublic int getLengthOfBurnIn()
BurnInTestBurnInTest.setValue(double).
getLengthOfBurnIn in class BurnInTestpublic StringBuffer toXML()
Storable
public String getInstanceName()
BurnInTest
getInstanceName in class BurnInTest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||