39 #ifndef _BINARYALPHABET_H_ 40 #define _BINARYALPHABET_H_ 76 unsigned int getSize()
const {
return 2; }
81 bool isUnresolved(
const std::string& state)
const {
return false; }
85 #endif // _BINARYALPHABET_H_
This alphabet is used to deal NumericAlphabet.
unsigned int getSize() const
Get the number of resolved states in the alphabet (e.g. return 4 for DNA alphabet). This is the method you'll need in most cases.
AbstractAlphabet & operator=(const AbstractAlphabet &alph)
bool isUnresolved(int state) const
BinaryAlphabet & operator=(const BinaryAlphabet &bia)
int getUnknownCharacterCode() const
BinaryAlphabet(const BinaryAlphabet &bia)
A partial implementation of the Alphabet interface.
std::string getAlphabetType() const
Identification method.
bool isUnresolved(const std::string &state) const
unsigned int getNumberOfTypes() const
Get the number of distinct states in alphabet (e.g. return 15 for DNA alphabet). This is the number o...
The BinaryAlphabet class, letters are 0 and 1.
virtual ~BinaryAlphabet()
BinaryAlphabet * clone() const