Modifier | Constructor and Description |
---|---|
protected |
Partition(de.jstacs.data.alphabets.DiscreteAlphabet alph,
SymbolSet... sets) |
Modifier and Type | Method and Description |
---|---|
protected void |
add(SymbolSet s) |
int |
compareTo(Partition o)
An order among Partitions is defined according to following rules:
1. number of elements (a Partition p is smaller than a Partition p' if p contains more elements than p')
2. comparing the elements is ascending order
Two Partitions are equal if and only if they contain pairwise equal SymbolSets (not necessarily the same objects)
|
protected boolean |
contains(SymbolSet s) |
protected java.lang.Boolean |
equals(Partition p) |
protected de.jstacs.data.alphabets.DiscreteAlphabet |
getAlphabet() |
protected int |
getNumberOfSymbols() |
protected double |
getScore() |
protected boolean |
isExtendableBy(SymbolSet s)
Checks if the Partition could be extended by the given SymbolSet.
|
protected java.lang.Boolean |
isValidPartition() |
protected java.lang.Boolean |
isValidPartitionUnderSizeConstraint(int allowedSize,
int allowedNumberOfExceptions) |
protected void |
setScore(double score) |
java.lang.String |
toString() |
protected Partition(de.jstacs.data.alphabets.DiscreteAlphabet alph, SymbolSet... sets)
protected void add(SymbolSet s)
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.Boolean equals(Partition p)
protected de.jstacs.data.alphabets.DiscreteAlphabet getAlphabet()
protected java.lang.Boolean isValidPartition()
protected java.lang.Boolean isValidPartitionUnderSizeConstraint(int allowedSize, int allowedNumberOfExceptions)
protected void setScore(double score)
protected double getScore()
protected int getNumberOfSymbols()
protected boolean isExtendableBy(SymbolSet s)
s
- an arbitrary SymbolSetpublic int compareTo(Partition o)
compareTo
in interface java.lang.Comparable<Partition>
protected boolean contains(SymbolSet s)
s
- an arbitrary SymbolSet