|
||||||||||
| 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.scoringFunctions.directedGraphicalModels.BayesianNetworkScoringFunctionParameterSet
public class BayesianNetworkScoringFunctionParameterSet
Class for the parameters of a BayesianNetworkScoringFunction. This
class fulfills the requirements of a SequenceScoringParameterSet and
can be used to create a new BayesianNetworkScoringFunction.
| 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 | |
|---|---|
BayesianNetworkScoringFunctionParameterSet()
Creates a new BayesianNetworkScoringFunctionParameterSet with
empty parameter values. |
|
BayesianNetworkScoringFunctionParameterSet(AlphabetContainer alphabet,
int length,
double ess,
boolean plugInParameters,
Measure structureMeasure)
Creates a new BayesianNetworkScoringFunctionParameterSet with
pre-defined parameter values. |
|
BayesianNetworkScoringFunctionParameterSet(StringBuffer representation)
Creates a new BayesianNetworkScoringFunctionParameterSet from its
XML representation as defined by the Storable
interface. |
|
| Method Summary | |
|---|---|
double |
getEss()
Returns the equivalent samples size (ess) defined in this set of parameters. |
String |
getInstanceComment()
Returns a comment (a textual description) of the class that can be constructed using this ParameterSet. |
String |
getInstanceName()
Returns the name of an instance of the class that can be constructed using this ParameterSet. |
Measure |
getMeasure()
Returns the structure Measure defined by this set of parameters. |
boolean |
getPlugInParameters()
Returns true if plug-in parameters shall be used when creating a BayesianNetworkScoringFunction from this set of parameters. |
protected void |
loadParameters()
Loads the parameters for this ParameterSet. |
| Methods inherited from class de.jstacs.parameters.SequenceScoringParameterSet |
|---|
clone, equals, fromXML, getAlphabetContainer, getLength, getNumberOfParameters, getParameterAt, hasDefaultOrIsSet, 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 BayesianNetworkScoringFunctionParameterSet(AlphabetContainer alphabet,
int length,
double ess,
boolean plugInParameters,
Measure structureMeasure)
throws Exception
BayesianNetworkScoringFunctionParameterSet with
pre-defined parameter values.
alphabet - the alphabet of the scoring function boxed in an
AlphabetContainer, e.g
new AlphabetContainer(new DNAAlphabet())length - the length of the scoring function, i.e. the length of the
sequences this scoring function can handleess - the equivalent sample sizeplugInParameters - indicates if plug-in parameters, i.e. generative (MAP)
parameters, shall be used upon initializationstructureMeasure - the Measure used for the structure, e.g.
InhomogeneousMarkov
Exception - if the alphabet or the length are not in the expected range
of valuespublic BayesianNetworkScoringFunctionParameterSet()
BayesianNetworkScoringFunctionParameterSet with
empty parameter values.
public BayesianNetworkScoringFunctionParameterSet(StringBuffer representation)
throws NonParsableException
BayesianNetworkScoringFunctionParameterSet from its
XML representation as defined by the Storable
interface.
representation - the XML code as StringBuffer
NonParsableException - is thrown if the XML representation could not be parsed| Method Detail |
|---|
public double getEss()
public boolean getPlugInParameters()
BayesianNetworkScoringFunction from this set of parameters.
public Measure getMeasure()
throws ParameterSetParser.NotInstantiableException
Measure defined by this set of parameters.
Measure
ParameterSetParser.NotInstantiableException - if the Measure could not be created from its own
InstanceParameterSetpublic String getInstanceComment()
InstanceParameterSetParameterSet.
getInstanceComment in class InstanceParameterSetpublic String getInstanceName()
InstanceParameterSetParameterSet.
getInstanceName in class InstanceParameterSet
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 ParameterSetException - if the parameters could not be loadedParameter,
ParameterSet.parameters,
ParameterSet.initParameterList(),
ParameterSet.initParameterList(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||