de.jstacs.models.hmm
Class HMMTrainingParameterSet

java.lang.Object
  extended by de.jstacs.parameters.ParameterSet
      extended by de.jstacs.models.hmm.HMMTrainingParameterSet
All Implemented Interfaces:
GalaxyConvertible, RangeIterator, Storable, Cloneable
Direct Known Subclasses:
MaxHMMTrainingParameterSet, SamplingHMMTrainingParameterSet

public class HMMTrainingParameterSet
extends ParameterSet

This class implements an abstract ParameterSet that is used for the training of an AbstractHMM.

Author:
Jens Keilwagen

Nested Class Summary
 
Nested classes/interfaces inherited from class de.jstacs.parameters.ParameterSet
ParameterSet.ParameterList
 
Field Summary
 
Fields inherited from class de.jstacs.parameters.ParameterSet
errorMessage, parameters, parent, ranged
 
Constructor Summary
protected HMMTrainingParameterSet()
          This is the empty constructor that can be used to fill the parameters after creation.
protected HMMTrainingParameterSet(int starts)
          This constructor can be used to create an instance with a specified number of starts.
protected HMMTrainingParameterSet(StringBuffer xml)
          The standard constructor for the interface Storable.
 
Method Summary
 int getNumberOfStarts()
          The method returns the number of different starts.
protected  void loadParameters()
          Loads the parameters for this ParameterSet.
 
Methods inherited from class de.jstacs.parameters.ParameterSet
clone, fromGalaxy, fromXML, getErrorMessage, getId, getIndex, getNumberOfParameters, getNumberOfValues, getParameterAt, getParent, hasDefaultOrIsSet, initParameterList, initParameterList, isAtomic, isRanged, makeRanged, next, parametersLoaded, propagateId, recieveId, replaceParametersWithRangedInstance, reset, resetToFirst, setParent, simplify, toGalaxy, toXML, valuesToString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HMMTrainingParameterSet

protected HMMTrainingParameterSet()
This is the empty constructor that can be used to fill the parameters after creation.


HMMTrainingParameterSet

protected HMMTrainingParameterSet(int starts)
                           throws SimpleParameter.IllegalValueException
This constructor can be used to create an instance with a specified number of starts.

Parameters:
starts - the number of different starts
Throws:
SimpleParameter.IllegalValueException - if the parameter can not be set

HMMTrainingParameterSet

protected HMMTrainingParameterSet(StringBuffer xml)
                           throws NonParsableException
The standard constructor for the interface Storable. Constructs a HMMTrainingParameterSet out of an XML representation.

Parameters:
xml - the XML representation as StringBuffer
Throws:
NonParsableException - if the HMMTrainingParameterSet could not be reconstructed out of the StringBuffer xml
Method Detail

loadParameters

protected void loadParameters()
                       throws Exception
Description copied from class: ParameterSet
Loads the parameters for this 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.

Specified by:
loadParameters in class ParameterSet
Throws:
Exception - if the parameters could not be loaded
See Also:
Parameter, ParameterSet.parameters, ParameterSet.initParameterList(), ParameterSet.initParameterList(int)

getNumberOfStarts

public int getNumberOfStarts()
The method returns the number of different starts.

Returns:
the number of starts