|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.data.Alphabet
de.jstacs.data.alphabets.ContinuousAlphabet
public class ContinuousAlphabet
Class for a continuous alphabet.
Nested Class Summary | |
---|---|
static class |
ContinuousAlphabet.ContinuousAlphabetParameterSet
Class for the ParameterSet of a ContinuousAlphabet . |
Nested classes/interfaces inherited from class de.jstacs.data.Alphabet |
---|
Alphabet.AlphabetParameterSet |
Constructor Summary | |
---|---|
ContinuousAlphabet(ContinuousAlphabet.ContinuousAlphabetParameterSet parameters)
The constructor for the InstantiableFromParameterSet interface. |
|
ContinuousAlphabet(double min,
double max)
Creates a new ContinuousAlphabet from a minimum and a maximum value |
|
ContinuousAlphabet(StringBuffer xml)
Extracts the alphabet from the StringBuffer. |
Method Summary | |
---|---|
int |
compareTo(Alphabet a)
|
ContinuousAlphabet.ContinuousAlphabetParameterSet |
getCurrentParameterSet()
Returns the ParameterSet that has been used to instantiate the current instance of the implementing
class. |
double |
getMax()
Returns the maximal value of this alphabet. |
double |
getMin()
Returns the minimal value. |
boolean |
isEncodedSymbol(double candidat)
Returns true if candidat is an element of the internal interval. |
double |
length()
Returns the length of the alphabet. |
String |
toString()
|
StringBuffer |
toXML()
This method returns an XML-representation of an instance of the implementing class. |
Methods inherited from class de.jstacs.data.Alphabet |
---|
checkConsistency |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContinuousAlphabet(ContinuousAlphabet.ContinuousAlphabetParameterSet parameters)
InstantiableFromParameterSet
interface.
parameters
- the ParameterSetpublic ContinuousAlphabet(double min, double max) throws IllegalArgumentException
ContinuousAlphabet
from a minimum and a maximum value
min
- the minimummax
- the maximum
IllegalArgumentException
- is thrown if minimum or maximum could not be setpublic ContinuousAlphabet(StringBuffer xml) throws NonParsableException
xml
- the XML stream
NonParsableException
- if the stream is not parsableMethod Detail |
---|
public ContinuousAlphabet.ContinuousAlphabetParameterSet getCurrentParameterSet() throws Exception
InstantiableFromParameterSet
ParameterSet
that has been used to instantiate the current instance of the implementing
class. If the current instance was not created using a ParameterSet
, an equivalent
ParameterSet
should be returned, such that an instance created using this
ParameterSet
would be in principle equal to the current instance.
ParameterSet
Exception
- is thrown if the ParameterSet
could not be returnedpublic StringBuffer toXML()
Storable
public int compareTo(Alphabet a)
public double getMin()
Alphabet
getMin
in class Alphabet
public double getMax()
public final boolean isEncodedSymbol(double candidat)
true
if candidat
is an element of the internal interval.
candidat
- the value to be tested
true
if candidat
is an element of the internal intervalpublic double length()
Alphabet
length
in class Alphabet
public String toString()
toString
in class Alphabet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |