|
||||||||||
| 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)
Creates a new ScoreClassifierParameterSet with empty parameter
values. |
|
ScoreClassifierParameterSet(StringBuffer xml)
The standard constructor for the interface 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 indicates if only the free parameters shall be used. |
| 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 ScoreClassifierParameterSet(Class<? extends ScoreClassifier> instanceClass,
boolean simple,
AlphabetContainer.AlphabetContainerType type,
boolean variableLength)
ScoreClassifierParameterSet with empty parameter
values.
instanceClass - the class of the instancesimple - indicates whether the AlphabetContainer shall be
simpletype - the type of the AlphabetContainervariableLength - indicates whether the corresponding classifier can handle
sequences of arbitrary lengthSequenceScoringParameterSet.SequenceScoringParameterSet(Class,
de.jstacs.data.AlphabetContainer.AlphabetContainerType, boolean, boolean)
public ScoreClassifierParameterSet(StringBuffer xml)
throws NonParsableException
Storable.
Creates a new ScoreClassifierParameterSet out of its XML
representation.
xml - the XML representation as StringBuffer
NonParsableException - if the ScoreClassifierParameterSet could not be
reconstructed out of the XML representation (the
StringBuffer could not be parsed)SequenceScoringParameterSet.SequenceScoringParameterSet(StringBuffer),
Storable
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 wrongSequenceScoringParameterSet.SequenceScoringParameterSet(Class,
AlphabetContainer, int, boolean)| 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 - if the parameters could not be loadedParameter,
ParameterSet.parameters,
ParameterSet.initParameterList(),
ParameterSet.initParameterList(int)public boolean useOnlyFreeParameter()
true if only the free parameters shall be used,
false otherwisepublic 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 | |||||||||