public interface Pattern
Modifier and Type | Method | Description |
---|---|---|
int |
getLength() |
|
State |
getMostFrequentState() |
Returns the most frequent state in this pattern
|
State |
getMostFrequentState(boolean includeAmbiguous) |
Returns the most frequent state in this pattern, optionally including ambiguous states
|
SequenceType |
getSequenceType() |
|
State |
getState(int index) |
Get the state for the ith taxon
|
int |
getStateCount(State state) |
Returns the count of the given state in this pattern
|
double |
getStateFrequency(State state) |
Returns the frequent of the given state in this pattern
|
java.util.List<State> |
getStates() |
|
java.util.Set<State> |
getStateSet() |
|
java.util.List<Taxon> |
getTaxa() |
|
double |
getWeight() |
Get the weight of this pattern
|
SequenceType getSequenceType()
int getLength()
java.util.List<Taxon> getTaxa()
State getState(int index)
index
- java.util.List<State> getStates()
java.util.Set<State> getStateSet()
double getWeight()
State getMostFrequentState()
State getMostFrequentState(boolean includeAmbiguous)
includeAmbiguous
- whether to include ambiguous statesdouble getStateFrequency(State state)
state
- int getStateCount(State state)
state
- http://code.google.com/p/jebl2/