|
||||||||||
| 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 InstanceParameterSet 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 ParameterSet
public 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 set
public ContinuousAlphabet(StringBuffer xml)
throws NonParsableException
StringBuffer.
xml - the XML stream
NonParsableException - if the stream is not parsable| Method Detail |
|---|
public ContinuousAlphabet.ContinuousAlphabetParameterSet getCurrentParameterSet()
throws Exception
InstantiableFromParameterSetInstanceParameterSet that has been used to instantiate the current instance of the implementing
class. If the current instance was not created using a InstanceParameterSet, an equivalent
InstanceParameterSet should be returned, such that an instance created using this
InstanceParameterSet would be in principle equal to the current instance.
InstanceParameterSet
Exception - is thrown if the InstanceParameterSet could not be returnedpublic StringBuffer toXML()
Storable
public int compareTo(Alphabet a)
public double getMin()
Alphabet
getMin in class Alphabetpublic 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 Alphabetpublic String toString()
toString in class Alphabet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||