|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.parameters.ParameterSet
de.jstacs.parameters.InstanceParameterSet
de.jstacs.parameters.SequenceScoringParameterSet
de.jstacs.models.discrete.DGMParameterSet
de.jstacs.models.discrete.inhomogeneous.parameters.IDGMParameterSet
de.jstacs.models.discrete.inhomogeneous.parameters.FSDAGMParameterSet
public class FSDAGMParameterSet
The class for the parameters of a FSDAGModel.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class de.jstacs.parameters.ParameterSet |
|---|
ParameterSet.ParameterList |
| Field Summary |
|---|
| Fields inherited from class de.jstacs.parameters.SequenceScoringParameterSet |
|---|
alphabet, length |
| Fields inherited from class de.jstacs.parameters.ParameterSet |
|---|
errorMessage, parameters, parent, ranged |
| Constructor Summary | |
|---|---|
|
FSDAGMParameterSet()
This is the constructor that creates an empty parameter set for a FSDAGModel. |
|
FSDAGMParameterSet(AlphabetContainer alphabet,
int length,
double ess,
String description,
String graph)
This is the constructor that creates a filled parameter set. |
protected |
FSDAGMParameterSet(Class<? extends FSDAGModel> clazz)
This is the constructor that creates an empty parameter set. |
protected |
FSDAGMParameterSet(Class<? extends FSDAGModel> clazz,
AlphabetContainer alphabet,
int length,
double ess,
String description,
String graph)
This is the constructor that creates a filled parameter set. |
|
FSDAGMParameterSet(StringBuffer s)
The constructor for the Storable interface. |
| Method Summary | |
|---|---|
static String |
encode(int[][] graph)
This method can be used to encode adjacency list to a graph description string. |
String |
getInstanceComment()
Returns a comment (a textual description) of the class that can be constructed using this ParameterSet. |
protected void |
loadParameters()
Loads the parameters for this ParameterSet. |
| Methods inherited from class de.jstacs.models.discrete.inhomogeneous.parameters.IDGMParameterSet |
|---|
getModelInstanceName |
| Methods inherited from class de.jstacs.models.discrete.DGMParameterSet |
|---|
clone, getInstanceName, hasDefaultOrIsSet, setEss |
| Methods inherited from class de.jstacs.parameters.SequenceScoringParameterSet |
|---|
equals, fromXML, getAlphabet, getIndex, getLength, getNumberOfParameters, getParameterAt, replaceParametersWithRangedInstance, reset, toXML |
| Methods inherited from class de.jstacs.parameters.InstanceParameterSet |
|---|
getInstance, getInstanceClass |
| Methods inherited from class de.jstacs.parameters.ParameterSet |
|---|
getErrorMessage, getId, getNumberOfValues, getParent, initParameterList, initParameterList, isAtomic, isRanged, makeRanged, next, parametersLoaded, propagateId, recieveId, resetToFirst, setParent, simplify, valuesToString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FSDAGMParameterSet(StringBuffer s)
throws NonParsableException
Storable interface.
s - the StringBuffer
NonParsableException - if the StringBuffer is not parsablepublic FSDAGMParameterSet()
FSDAGModel.
public FSDAGMParameterSet(AlphabetContainer alphabet,
int length,
double ess,
String description,
String graph)
throws Exception
alphabet - the alphabet container that is used in the modellength - the length of the model (has to be positive)ess - the equivalent sample size (has to be positive)description - a short description of the model (used for a better handling of the object by the user)graph - the graph description string, encodes in XML-like manner the parents of each node "<parents
node=i>j,k,l</parents>"
Exception - if something went wrongencode(int[][])protected FSDAGMParameterSet(Class<? extends FSDAGModel> clazz)
clazz - the class of the object that will be created with this parameter setFSDAGModel,
FSDAGModelForGibbsSampling
protected FSDAGMParameterSet(Class<? extends FSDAGModel> clazz,
AlphabetContainer alphabet,
int length,
double ess,
String description,
String graph)
throws Exception
clazz - the class of the object that will be created with this parameter setalphabet - the alphabet container that is used in the modellength - the length of the model (has to be positive)ess - the equivalent sample size (has to be positive)description - a short description of the model (used for a better handling of the object by the user)graph - the graph description string, encodes in XML-like manner the parents of each node "<parents
node=i>j,k,l</parents>"
Exception - if something went wrongencode(int[][])| Method Detail |
|---|
protected void loadParameters()
throws Exception
ParameterSetParameterSet. This is in
most cases done by calling ParameterSet.initParameterList() or ParameterSet.initParameterList(int)
to initialize ParameterSet.parameters and afterwards filling ParameterSet.parameters with instances of subclasses of Parameter.
loadParameters in class DGMParameterSetException - an Exception is thrown if the parameters could not be loadedParameterSet.parameters,
Parameterpublic String getInstanceComment()
InstanceParameterSetParameterSet.
getInstanceComment in class InstanceParameterSetpublic static String encode(int[][] graph)
graph - graph[i] contains the parents of node i
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||