|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmesquite.lib.characters.MCharactersStates
mesquite.categ.lib.MCategoricalStates
mesquite.categ.lib.MCategoricalDistribution
mesquite.categ.lib.MCategoricalAdjustable
public class MCategoricalAdjustable
A class for an array of categorical character states for many characters, at each of the taxa or nodes.
| Field Summary |
|---|
| Fields inherited from class mesquite.categ.lib.MCategoricalStates |
|---|
extraFrequencies, frequencies |
| Fields inherited from class mesquite.lib.characters.MCharactersStates |
|---|
data, totalCreated |
| Constructor Summary | |
|---|---|
MCategoricalAdjustable()
|
|
MCategoricalAdjustable(Taxa taxa)
|
|
MCategoricalAdjustable(Taxa taxa,
int numChars,
int numTaxa)
|
|
| Method Summary | |
|---|---|
void |
deassignStates()
assign missing data (unassigned) to all characters and nodes |
java.lang.String |
getAnnotation()
|
CharacterDistribution |
getCharacterDistribution(int ic)
return CharacterDistribution object for character ic |
int |
getNumChars()
|
int |
getNumTaxa()
returns number of terminal taxa for which MCharactersStates is defined |
long |
getState(int ic,
int N)
returns state set of character ic at node |
CharacterData |
makeCharacterData(CharMatrixManager manager,
Taxa taxa)
return CharacterData filled with same values as this matrix |
void |
setAnnotation(java.lang.String s,
boolean notify)
|
void |
setCharacterState(CharacterState s,
int ic,
int it)
sets the character state of character ic and taxon it to that in the passed CharacterState |
void |
setParentData(CharacterData cd)
sets the parent CharacterData from which this CharacterDistribution is derived or related |
void |
setSize(int numChars,
int numTaxa)
Set the size of the matrix |
void |
setState(int ic,
int N,
long d)
set state set of character ic at node to d |
void |
tradeStatesBetweenTaxa(int ic,
int it,
int it2)
trades the states of character ic between taxa it and it2. |
void |
transferFrom(int ic,
CharacterDistribution s)
obtain states of character ic from passed CharacterDistribution object |
| Methods inherited from class mesquite.categ.lib.MCategoricalDistribution |
|---|
adjustHistorySize, getStateRaw, makeBlankAdjustable |
| Methods inherited from class mesquite.lib.characters.MCharactersStates |
|---|
checkIllegalNode, getBasisTree, getName, getNumNodes, getParentData, getTaxa, isCurrentlyIncluded, matrixToString, setBasisTree, setName, setTaxa |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface mesquite.lib.characters.MAdjustableDistribution |
|---|
setTaxa |
| Methods inherited from interface mesquite.lib.characters.MCharactersDistribution |
|---|
adjustHistorySize, getBasisTree, makeBlankAdjustable, setBasisTree |
| Methods inherited from interface mesquite.lib.characters.MCharactersStatesHolder |
|---|
getCharacterDataClass, getCharacterState, getDataTypeName, getNumNodes, getParentData, getStateClass, getTaxa, isCurrentlyIncluded |
| Methods inherited from interface mesquite.lib.Listable |
|---|
getName |
| Methods inherited from interface mesquite.lib.Renamable |
|---|
setName |
| Constructor Detail |
|---|
public MCategoricalAdjustable(Taxa taxa,
int numChars,
int numTaxa)
public MCategoricalAdjustable(Taxa taxa)
public MCategoricalAdjustable()
| Method Detail |
|---|
public void setAnnotation(java.lang.String s,
boolean notify)
setAnnotation in interface Annotatablepublic java.lang.String getAnnotation()
getAnnotation in interface Annotatablepublic void setParentData(CharacterData cd)
setParentData in interface MAdjustableDistribution
public void setSize(int numChars,
int numTaxa)
MAdjustableDistribution
setSize in interface MAdjustableDistributionpublic void deassignStates()
deassignStates in interface MAdjustableDistribution
public long getState(int ic,
int N)
getState in class MCategoricalStates
public void setState(int ic,
int N,
long d)
public void setCharacterState(CharacterState s,
int ic,
int it)
setCharacterState in interface MAdjustableDistribution
public void tradeStatesBetweenTaxa(int ic,
int it,
int it2)
tradeStatesBetweenTaxa in interface MAdjustableDistribution
public void transferFrom(int ic,
CharacterDistribution s)
transferFrom in interface MAdjustableDistributionpublic CharacterDistribution getCharacterDistribution(int ic)
getCharacterDistribution in interface MCharactersDistribution
public CharacterData makeCharacterData(CharMatrixManager manager,
Taxa taxa)
makeCharacterData in interface MCharactersDistributionmakeCharacterData in class MCategoricalDistributionpublic int getNumTaxa()
MCharactersStatesHolder
getNumTaxa in interface MCharactersStatesHolderpublic int getNumChars()
getNumChars in interface MCharactersStatesHolder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||