de.jstacs.data
Class Alphabet
java.lang.Object
de.jstacs.data.Alphabet
- All Implemented Interfaces:
- InstantiableFromParameterSet, Storable, Comparable<Alphabet>
- Direct Known Subclasses:
- ContinuousAlphabet, DiscreteAlphabet
public abstract class Alphabet
- extends Object
- implements Storable, InstantiableFromParameterSet, Comparable<Alphabet>
Class for an Alphabet. All Alphabets are immutable.
- Author:
- Jens Keilwagen
Method Summary |
boolean |
checkConsistency(Alphabet a)
Checks if two alphabets are consistent, i.e. both alphabets use the same symbols. |
abstract double |
getMin()
Returns the minimal value. |
abstract double |
length()
Returns the length of the alphabet. |
abstract String |
toString()
|
Alphabet
public Alphabet()
checkConsistency
public final boolean checkConsistency(Alphabet a)
- Checks if two alphabets are consistent, i.e. both alphabets use the same symbols.
- Parameters:
a
- the second alphabet
- Returns:
- true if both alphabets are consistent, false otherwise
getMin
public abstract double getMin()
- Returns the minimal value.
- Returns:
- the minimal value
length
public abstract double length()
- Returns the length of the alphabet.
- Returns:
- the length of the alphabet
toString
public abstract String toString()
- Overrides:
toString
in class Object