|
||||||||||
| 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.classifier.scoringFunctionBased.ScoreClassifierParameterSet
public class ScoreClassifierParameterSet
The parameter set for any CL classifier.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class de.jstacs.parameters.ParameterSet |
|---|
ParameterSet.ParameterList |
| Field Summary |
|---|
| Fields inherited from class de.jstacs.parameters.InstanceParameterSet |
|---|
alphabet, length |
| Fields inherited from class de.jstacs.parameters.ParameterSet |
|---|
alternativeInstanceClass, errorMessage, parameters, parent, ranged |
| Constructor Summary | |
|---|---|
ScoreClassifierParameterSet(AlphabetContainer alphabet,
int length,
byte algo,
double eps,
double lineps,
double startD,
boolean free,
boolean plugIn)
The constructor for a simple, instantiated parameter set. |
|
ScoreClassifierParameterSet(boolean simple,
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.InstanceParameterSet |
|---|
clone, equals, fromXML, getAlphabet, getIndex, getLength, getNumberOfParameters, getParameterAt, hasDefaultOrIsSet, replaceParametersWithRangedInstance, reset, toXML |
| Methods inherited from class de.jstacs.parameters.ParameterSet |
|---|
getErrorMessage, getId, getInstance, getInstanceClass, getNumberOfValues, getParent, initParameterList, initParameterList, isAtomic, isRanged, makeRanged, next, parametersLoaded, propagateId, recieveId, resetToFirst, setAlternativeInstanceClass, setParent, simplify, valuesToString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScoreClassifierParameterSet(boolean simple,
boolean variableLength)
simple - whether the AlphabetContainer shall be simple.variableLength - 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(AlphabetContainer alphabet,
int length,
byte algo,
double eps,
double lineps,
double startD,
boolean free,
boolean plugIn)
throws Exception
alphabet - 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 usedplugIn - indicates whether to use plug-in parameters or not
Exception| Method Detail |
|---|
protected void loadParameters()
throws Exception
ParameterSetParameterSet. This is in
most cases done by simply creating a new ArrayList<Parameter> for the
field parameters/code>
and filling it with instances of subclasses of Parameter
- Specified by:
loadParameters in class ParameterSet
- Throws:
Exception - an Exception is thrown if the parameters could not be loaded- See Also:
ParameterSet.parameters,
Parameter
public boolean useOnlyFreeParameter()
true if only the free parameters shall be used.
true if only the free parameters shall be usedpublic String getInstanceName()
ParameterSetParameterSet.
getInstanceName in class ParameterSetpublic String getInstanceComment()
ParameterSetParameterSet.
getInstanceComment in class ParameterSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||