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 a set of symbols, i.e. an Alphabet
. All Alphabet
s
are immutable.
- Author:
- Jens Keilwagen
Alphabet
public Alphabet()
checkConsistency
public final boolean checkConsistency(Alphabet a)
- Checks if this
Alphabet
is consistent consistent with another
Alphabet
, i.e. both Alphabet
s use the same symbols.
- Parameters:
a
- the second Alphabet
- Returns:
true
if the Alphabet
s are consistent,
false
otherwise- See Also:
Comparable.compareTo(Object)
getMin
public abstract double getMin()
- Returns the minimal value of the
Alphabet
.
- Returns:
- the minimal value of the
Alphabet
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