NxsDiscreteStateRow NxsUnalignedBlock::GetInternalRepresentation ( unsigned  taxInd,
unsigned  charInd 
)

Returns internal representation of the state for taxon `i', character `j', as a vector of integer values.

In the normal situation, there is only one state with no uncertainty or polymorphism and the vector returned will contain only a single, positive integer value. If there are multiple states, the vector will contain k values, where k equals the number of states plus 1. The first value in the vector will be either 0 (indicating ambiguity) or 1 (meaning polymorphism), and the remaining values will be positive integers each of which is an index into the symbols array. In the case of missing data, an empty vector will be returned. In an UNALIGNED block, there are a different number of characters for each taxon. Use NumCharsForTaxon before calling this function to make sure you do not ask for a character beyond the end. If that happens, a NxsUnalignedBlock::NxsX_NoSuchCharacter exception will be thrown. If no data is stored for taxon `i' in this UNALIGNED block, a NxsUnalignedBlock::NxsX_NoDataForTaxon exception will be thrown, with the exception object storing the offending taxon index in its public data member `taxon_index'.

Definition at line 800 of file nxsunalignedblock.cpp.

 All Classes Functions Variables Enumerations Enumerator Friends
Generated on Mon Mar 29 16:37:13 2010 for NCL by  doxygen 1.6.3