|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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
(fixed
structure directed acyclic graphical
model).
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 constructor creates an empty FSDAGMParameterSet set for a
FSDAGModel . |
|
FSDAGMParameterSet(AlphabetContainer alphabet,
int length,
double ess,
String description,
String graph)
This constructor creates an FSDAGMParameterSet instance. |
protected |
FSDAGMParameterSet(Class<? extends FSDAGModel> clazz)
This the constructor creates an empty FSDAGMParameterSet from the
class that can be instantiated using this FSDAGMParameterSet . |
protected |
FSDAGMParameterSet(Class<? extends FSDAGModel> clazz,
AlphabetContainer alphabet,
int length,
double ess,
String description,
String graph)
This constructor creates an FSDAGMParameterSet instance for the
specified class. |
|
FSDAGMParameterSet(StringBuffer s)
The standard constructor for the interface Storable . |
Method Summary | |
---|---|
static String |
encode(int[][] graph)
This method can be used to encode an adjacency list to a graph description String (e.g. for the different constructors which
requires graph description String s). |
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, getAlphabetContainer, getLength, getNumberOfParameters, getParameterAt, replaceParametersWithRangedInstance, reset, toXML |
Methods inherited from class de.jstacs.parameters.InstanceParameterSet |
---|
getInstance, getInstanceClass |
Methods inherited from class de.jstacs.parameters.ParameterSet |
---|
fromGalaxy, getErrorMessage, getId, getIndex, getNumberOfValues, getParent, initParameterList, initParameterList, isAtomic, isRanged, makeRanged, next, parametersLoaded, propagateId, recieveId, resetToFirst, setParent, simplify, toGalaxy, 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
.
Creates a new FSDAGMParameterSet
out of its XML representation.
s
- the XML representation as StringBuffer
NonParsableException
- if the FSDAGMParameterSet
could not be reconstructed
out of the XML representation (the StringBuffer
could
not be parsed)Storable
,
IDGMParameterSet.IDGMParameterSet(StringBuffer)
public FSDAGMParameterSet()
FSDAGMParameterSet
set for a
FSDAGModel
.
FSDAGMParameterSet(Class)
public FSDAGMParameterSet(AlphabetContainer alphabet, int length, double ess, String description, String graph) throws Exception
FSDAGMParameterSet
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[][])
,
FSDAGMParameterSet(Class, AlphabetContainer, int,
double, String, String)
protected FSDAGMParameterSet(Class<? extends FSDAGModel> clazz)
FSDAGMParameterSet
from the
class that can be instantiated using this FSDAGMParameterSet
.
clazz
- the class of the object that will be created with this
parameter setFSDAGModel
,
FSDAGModelForGibbsSampling
,
IDGMParameterSet.IDGMParameterSet(Class)
protected FSDAGMParameterSet(Class<? extends FSDAGModel> clazz, AlphabetContainer alphabet, int length, double ess, String description, String graph) throws Exception
FSDAGMParameterSet
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[][])
,
IDGMParameterSet.IDGMParameterSet(Class, AlphabetContainer, int,
double, String)
Method Detail |
---|
protected void loadParameters() throws Exception
ParameterSet
ParameterSet
. 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 DGMParameterSet
Exception
- if the parameters could not be loadedParameter
,
ParameterSet.parameters
,
ParameterSet.initParameterList()
,
ParameterSet.initParameterList(int)
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
FSDAGMParameterSet(AlphabetContainer, int,
double, String, String)
,
FSDAGMParameterSet(Class, AlphabetContainer, int,
double, String, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |