|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.data.alphabets.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.alphabets.Alphabet |
|---|
Alphabet.AlphabetParameterSet<T extends Alphabet> |
| Constructor Summary | |
|---|---|
ContinuousAlphabet()
Creates a new ContinuousAlphabet with minimum and maximum value
being -Double.MAX_VALUE and Double.MAX_VALUE,
respectively. |
|
ContinuousAlphabet(boolean allowNaN)
Creates a new ContinuousAlphabet with minimum and maximum value
being -Double.MAX_VALUE and Double.MAX_VALUE,
respectively. |
|
ContinuousAlphabet(ContinuousAlphabet.ContinuousAlphabetParameterSet parameters)
The constructor for the InstantiableFromParameterSet
interface. |
|
ContinuousAlphabet(double min,
double max)
Creates a new ContinuousAlphabet from a minimal and a maximal
value. |
|
ContinuousAlphabet(double min,
double max,
boolean allowNaN)
Creates a new ContinuousAlphabet from a minimal and a maximal
value. |
|
ContinuousAlphabet(StringBuffer xml)
The standard constructor for the interface Storable. |
|
| 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 of the Alphabet. |
boolean |
isEncodedSymbol(double candidat)
Indicates 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 as StringBuffer of an
instance of the implementing class. |
| Methods inherited from class de.jstacs.data.alphabets.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. Creates a new ContinuousAlphabet from a given set of
parameters.
parameters - the parameter set for the ContinuousAlphabetInstantiableFromParameterSet
public ContinuousAlphabet(double min,
double max)
throws IllegalArgumentException
ContinuousAlphabet from a minimal and a maximal
value. NaN values are not allowed.
min - the minimal valuemax - the maximal value
IllegalArgumentException - if the minimum or the maximum could not be set
public ContinuousAlphabet(double min,
double max,
boolean allowNaN)
throws IllegalArgumentException
ContinuousAlphabet from a minimal and a maximal
value.
min - the minimal valuemax - the maximal valueallowNaN - true if NaN values are allowed
IllegalArgumentException - if the minimum or the maximum could not be setpublic ContinuousAlphabet()
ContinuousAlphabet with minimum and maximum value
being -Double.MAX_VALUE and Double.MAX_VALUE,
respectively. NaN values are not allowed.
IllegalArgumentException - if the minimum or the maximum could not be setContinuousAlphabet(double, double)public ContinuousAlphabet(boolean allowNaN)
ContinuousAlphabet with minimum and maximum value
being -Double.MAX_VALUE and Double.MAX_VALUE,
respectively.
allowNaN - true if NaN values are allowed
IllegalArgumentException - if the minimum or the maximum could not be setContinuousAlphabet(double, double)
public ContinuousAlphabet(StringBuffer xml)
throws NonParsableException
Storable.
Creates a new ContinuousAlphabet out of its XML representation.
xml - the XML representation as StringBuffer
NonParsableException - if the ContinuousAlphabet could not be reconstructed
out of the XML representation (the StringBuffer could
not be parsed)Storable| 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 an InstanceParameterSet,
an equivalent InstanceParameterSet should be returned, so that an
instance created using this InstanceParameterSet would be in
principle equal to the current instance.
getCurrentParameterSet in interface InstantiableFromParameterSetgetCurrentParameterSet in class AlphabetInstanceParameterSet
Exception - if the InstanceParameterSet could not be returnedpublic StringBuffer toXML()
StorableStringBuffer of an
instance of the implementing class.
public int compareTo(Alphabet a)
public double getMin()
AlphabetAlphabet.
getMin in class AlphabetAlphabetpublic double getMax()
public final boolean isEncodedSymbol(double candidat)
candidat is an element of the internal
interval.
candidat - the value to be tested
true if candidat is an element of the
internal interval, false otherwisepublic double length()
AlphabetAlphabet.
length in class AlphabetAlphabetpublic String toString()
toString in class Alphabet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||