Class BasicCharacterStateMatrix<S>
java.lang.Object
org.forester.evoinference.matrix.character.BasicCharacterStateMatrix<S>
- All Implemented Interfaces:
 CharacterStateMatrix<S>
- 
Nested Class Summary
Nested classes/interfaces inherited from interface org.forester.evoinference.matrix.character.CharacterStateMatrix
CharacterStateMatrix.BinaryStates, CharacterStateMatrix.Format, CharacterStateMatrix.GainLossStates, CharacterStateMatrix.NucleotideStates - 
Constructor Summary
ConstructorsConstructorDescriptionBasicCharacterStateMatrix(int number_of_identifiers, int number_of_characters) BasicCharacterStateMatrix(int number_of_identifiers, int number_of_characters, S default_state) BasicCharacterStateMatrix(List<List<S>> states) BasicCharacterStateMatrix(S[][] states)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsCharacter(String character) booleancontainsIdentifier(String identifier) copy()booleangetCharacter(int character_index) intgetCharacterIndex(String character) getIdentifier(int identifier_index) intgetIdentifierIndex(String identifier) intintgetState(int identifier_index, int character_index) booleanisEmpty()pivot()voidsetCharacter(int character_index, String character) voidsetIdentifier(int identifier_index, String identifier) voidvoidvoidvoidvoidtoWriter(Writer writer, CharacterStateMatrix.Format format) voidvoidvoidvoid 
- 
Constructor Details
- 
BasicCharacterStateMatrix
public BasicCharacterStateMatrix(int number_of_identifiers, int number_of_characters)  - 
BasicCharacterStateMatrix
public BasicCharacterStateMatrix(int number_of_identifiers, int number_of_characters, S default_state)  - 
BasicCharacterStateMatrix
 - 
BasicCharacterStateMatrix
 
 - 
 - 
Method Details
- 
containsCharacter
- Specified by:
 containsCharacterin interfaceCharacterStateMatrix<S>
 - 
containsIdentifier
- Specified by:
 containsIdentifierin interfaceCharacterStateMatrix<S>
 - 
copy
- Specified by:
 copyin interfaceCharacterStateMatrix<S>
 - 
equals
 - 
getCharacter
- Specified by:
 getCharacterin interfaceCharacterStateMatrix<S>
 - 
getCharacterIndex
- Specified by:
 getCharacterIndexin interfaceCharacterStateMatrix<S>
 - 
getIdentifier
- Specified by:
 getIdentifierin interfaceCharacterStateMatrix<S>
 - 
getIdentifierIndex
- Specified by:
 getIdentifierIndexin interfaceCharacterStateMatrix<S>
 - 
getNumberOfCharacters
public int getNumberOfCharacters()- Specified by:
 getNumberOfCharactersin interfaceCharacterStateMatrix<S>
 - 
getNumberOfIdentifiers
public int getNumberOfIdentifiers()- Specified by:
 getNumberOfIdentifiersin interfaceCharacterStateMatrix<S>
 - 
getState
- Specified by:
 getStatein interfaceCharacterStateMatrix<S>
 - 
getState
- Specified by:
 getStatein interfaceCharacterStateMatrix<S>
 - 
getState
- Specified by:
 getStatein interfaceCharacterStateMatrix<S>
 - 
isEmpty
public boolean isEmpty()- Specified by:
 isEmptyin interfaceCharacterStateMatrix<S>
 - 
pivot
- Specified by:
 pivotin interfaceCharacterStateMatrix<S>
 - 
setCharacter
- Specified by:
 setCharacterin interfaceCharacterStateMatrix<S>
 - 
setIdentifier
- Specified by:
 setIdentifierin interfaceCharacterStateMatrix<S>
 - 
setState
- Specified by:
 setStatein interfaceCharacterStateMatrix<S>
 - 
setState
- Specified by:
 setStatein interfaceCharacterStateMatrix<S>
 - 
setState
- Specified by:
 setStatein interfaceCharacterStateMatrix<S>
 - 
toWriter
- Specified by:
 toWriterin interfaceCharacterStateMatrix<S>- Throws:
 IOException
 - 
toWriter
- Specified by:
 toWriterin interfaceCharacterStateMatrix<S>- Throws:
 IOException
 - 
writeNexusBinaryChractersBlock
- Throws:
 IOException
 - 
writeNexusCharstatelabels
- Throws:
 IOException
 - 
writeNexusMatrix
- Throws:
 IOException
 - 
writeNexusTaxaBlock
- Throws:
 IOException
 
 -