|
||||||||||
| 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.classifier.scoringFunctionBased.ScoreClassifierParameterSet
public class ScoreClassifierParameterSet
A set of Parameters for any ScoreClassifier.
| 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 | |
|---|---|
ScoreClassifierParameterSet(Class<? extends ScoreClassifier> instanceClass,
AlphabetContainer alphabet,
int length,
byte algo,
double eps,
double lineps,
double startD,
boolean free,
OptimizableFunction.KindOfParameter kind)
The constructor for a simple, instantiated parameter set. |
|
ScoreClassifierParameterSet(Class<? extends ScoreClassifier> instanceClass,
boolean simple,
AlphabetContainer.AlphabetContainerType type,
boolean variableLength)
The default constructor. |
|
ScoreClassifierParameterSet(StringBuffer xml)
This is the constructor for Storable. |
|
| Method Summary | |
|---|---|
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. |
protected void |
loadParameters()
Loads the parameters for this ParameterSet. |
boolean |
useOnlyFreeParameter()
This method returns true if only the free parameters shall
be used. |
| Methods inherited from class de.jstacs.parameters.SequenceScoringParameterSet |
|---|
clone, equals, fromXML, getAlphabet, getIndex, 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 |
|---|
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 ScoreClassifierParameterSet(Class<? extends ScoreClassifier> instanceClass,
boolean simple,
AlphabetContainer.AlphabetContainerType type,
boolean variableLength)
instanceClass - the class of the instancesimple - whether the AlphabetContainer shall be simple.type - the type of the AlphabetContainervariableLength - whether the corresponding classifier can handle sequences of
arbitrary length
public ScoreClassifierParameterSet(StringBuffer xml)
throws NonParsableException
Storable.
xml - the XML representation
NonParsableException - if the representation could not be parsed.
public ScoreClassifierParameterSet(Class<? extends ScoreClassifier> instanceClass,
AlphabetContainer alphabet,
int length,
byte algo,
double eps,
double lineps,
double startD,
boolean free,
OptimizableFunction.KindOfParameter kind)
throws Exception
instanceClass - the class of the instancealphabet - the alphabetlength - the length of the sequences, 0 for homogeneousalgo - the choice of algorithmeps - the threshold for stopping the algorithmlineps - the threshold for stopping the line search in the algorithmstartD - the start distance for the line search in the algorithmfree - indicates whether only the free parameters or all parameters
should be usedkind - indicates the kind of class parameter initialization
Exception - if something went wrong| 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 ParameterSetException - an Exception is thrown if the parameters could not be loadedParameterSet.parameters,
Parameterpublic boolean useOnlyFreeParameter()
true if only the free parameters shall
be used.
true if only the free parameters shall be usedpublic String getInstanceName()
InstanceParameterSetParameterSet.
getInstanceName in class InstanceParameterSetpublic String getInstanceComment()
InstanceParameterSetParameterSet.
getInstanceComment in class InstanceParameterSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||