public class FSDAGTrainSMParameterSet extends IDGTrainSMParameterSet
FSDAGTrainSM
(fixed
structure directed acyclic graphical
model).ParameterSet.ParameterList
alphabet, length
errorMessage, parameters, parent
Modifier | Constructor and Description |
---|---|
|
FSDAGTrainSMParameterSet()
This constructor creates an empty
FSDAGTrainSMParameterSet set for a
FSDAGTrainSM . |
|
FSDAGTrainSMParameterSet(AlphabetContainer alphabet,
int length,
double ess,
String description,
String graph)
This constructor creates an
FSDAGTrainSMParameterSet instance. |
protected |
FSDAGTrainSMParameterSet(Class<? extends FSDAGTrainSM> clazz)
This the constructor creates an empty
FSDAGTrainSMParameterSet from the
class that can be instantiated using this FSDAGTrainSMParameterSet . |
protected |
FSDAGTrainSMParameterSet(Class<? extends FSDAGTrainSM> clazz,
AlphabetContainer alphabet,
int length,
double ess,
String description,
String graph)
This constructor creates an
FSDAGTrainSMParameterSet instance for the
specified class. |
|
FSDAGTrainSMParameterSet(StringBuffer s)
The standard constructor for the interface
Storable . |
Modifier and Type | Method and Description |
---|---|
static String |
encode(int[][] graph)
This method can be used to encode an adjacency list to a graph
description
String (e.g. |
String |
getInstanceComment()
Returns a comment (a textual description) of the class that can be
constructed using this
ParameterSet . |
getModelInstanceName
clone, getInstanceName, hasDefaultOrIsSet, setEss
equals, fromXML, getAlphabetContainer, getLength, getNumberOfParameters, getParameterAt, reset, toXML
getInstance, getInstanceClass
fromGalaxy, getAllParameterNames, getComment, getComment, getErrorMessage, getIndex, getName, getName, getParameterForName, getParent, initParameterList, initParameterList, isAtomic, isComparable, parametersLoaded, setParent, toGalaxy
public FSDAGTrainSMParameterSet(StringBuffer s) throws NonParsableException
Storable
.
Creates a new FSDAGTrainSMParameterSet
out of its XML representation.s
- the XML representation as StringBuffer
NonParsableException
- if the FSDAGTrainSMParameterSet
could not be reconstructed
out of the XML representation (the StringBuffer
could
not be parsed)Storable
,
IDGTrainSMParameterSet.IDGTrainSMParameterSet(StringBuffer)
public FSDAGTrainSMParameterSet()
FSDAGTrainSMParameterSet
set for a
FSDAGTrainSM
.FSDAGTrainSMParameterSet(Class)
public FSDAGTrainSMParameterSet(AlphabetContainer alphabet, int length, double ess, String description, String graph) throws Exception
FSDAGTrainSMParameterSet
instance. It sets
the AlphabetContainer
, the length, the ess (equivalent
sample size) and the model description as well as a
String
describing the graph structure.alphabet
- the AlphabetContainer
that is used in the modellength
- the length of the model (has to be positive)ess
- the ess (equivalent sample size) of the
model (has to be positive)description
- a short description of the model (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[][])
,
FSDAGTrainSMParameterSet(Class, AlphabetContainer, int,
double, String, String)
protected FSDAGTrainSMParameterSet(Class<? extends FSDAGTrainSM> clazz)
FSDAGTrainSMParameterSet
from the
class that can be instantiated using this FSDAGTrainSMParameterSet
.clazz
- the class of the object that will be created with this
parameter setFSDAGTrainSM
,
FSDAGModelForGibbsSampling
,
IDGTrainSMParameterSet.IDGTrainSMParameterSet(Class)
protected FSDAGTrainSMParameterSet(Class<? extends FSDAGTrainSM> clazz, AlphabetContainer alphabet, int length, double ess, String description, String graph) throws Exception
FSDAGTrainSMParameterSet
instance for the
specified class. It sets the AlphabetContainer
, the length, the
ess (equivalent sample size) and the model
description as well as a String
describing the graph structure.clazz
- the class of the object that will be created with this
parameter setalphabet
- the AlphabetContainer
that is used in the modellength
- the length of the model (has to be positive)ess
- the ess (equivalent sample size) of the
model (has to be positive)description
- a short description of the model (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[][])
,
IDGTrainSMParameterSet.IDGTrainSMParameterSet(Class, AlphabetContainer, int,
double, String)
public String getInstanceComment()
InstanceParameterSet
ParameterSet
.getInstanceComment
in class InstanceParameterSet
public static String encode(int[][] graph)
String
(e.g. for the different constructors which
requires graph description String
s).graph
- graph[i]
contains the parents of node
i
String
FSDAGTrainSMParameterSet(AlphabetContainer, int,
double, String, String)
,
FSDAGTrainSMParameterSet(Class, AlphabetContainer, int,
double, String, String)