|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmesquite.lib.characters.CharacterStates
mesquite.cont.lib.ContinuousStates
mesquite.cont.lib.ContinuousDistribution
mesquite.cont.lib.ContinuousAdjustable
mesquite.cont.lib.ContinuousHistory
public class ContinuousHistory
Contains an array of continuous character states for one character, at each of the taxa or nodes. See notes under ContinuousData regarding items
| Field Summary |
|---|
| Fields inherited from class mesquite.cont.lib.ContinuousAdjustable |
|---|
firstItem, items, numNodes |
| Fields inherited from class mesquite.lib.characters.CharacterStates |
|---|
characterNumber, data, totalCreated |
| Constructor Summary | |
|---|---|
ContinuousHistory(Taxa taxa,
int numNodes,
ContinuousData data)
|
|
| Method Summary | |
|---|---|
CharacterHistory |
adjustSize(Tree tree)
This readjust procedure can be called to readjust the size of storage of states of a character for nodes. |
CharacterHistory |
clone(CharacterHistory s)
clones given CharacterHistory. |
int |
getColorsAtNode(int node,
ColorDistribution colors,
MesquiteColorTable stateColors,
boolean showWeights)
Places into Color array the colors at the node, and returns the number of colors. |
ColorEventVector |
getColorSequenceAtNode(int node,
MesquiteColorTable stateColors)
returns the vector of ColorEvents in order, e.g. |
int |
getColorsOfState(CharacterState state,
ColorDistribution colors,
MesquiteColorTable colorTable)
places into the already instantiated ColorDistribution the colors corresponding to the CharacterState, and returns the number of colors. |
MesquiteColorTable |
getColorTable(MesquiteColorTable colorTable)
|
int |
getLegendStates(java.awt.Color[] cs,
java.lang.String[] stateNames,
java.awt.Point[] tableMappings,
MesquiteColorTable stateColors)
gets colors and statesnames of states in reconstruction. |
CharacterDistribution |
getObservedStates()
Returns the states in the terminal taxa (used if History is reconstruction) |
CharacterDistribution |
getStatesAtTips(Tree tree)
Returns a new object indicating the states at the tips (used whether or not History is reconstruction) |
void |
prepareColors(Tree tree,
int drawnRoot)
Must be called before a tree is shaded. |
void |
setObservedStates(CharacterDistribution observed)
Sets the states in the terminal taxa (used if History is reconstruction) |
| Methods inherited from class mesquite.cont.lib.ContinuousAdjustable |
|---|
addItem, addItem, adjustSize, deassignStates, establishItem, establishItem, getItem, getItemName, getItemNumber, getItemReference, getItemReference, getNumItems, getNumNodes, getNumTaxa, getState, getState, removeItem, setCharacterState, setItemReference, setItems, setItems, setItemsAs, setState, setState, tradeStatesBetweenTaxa |
| Methods inherited from class mesquite.cont.lib.ContinuousDistribution |
|---|
adjustHistorySize, getAdjustableClone, hasInapplicable, hasInapplicable, hasMissing, hasMissing, isConstant, isConstant |
| Methods inherited from class mesquite.cont.lib.ContinuousStates |
|---|
firstIsGreater, getCharacterDataClass, getCharacterState, getCharacterState, getDataTypeName, getDefaultModel, getStateClass, isInapplicable, isUnassigned, isUncertain, logStates, statesEqual, toString, userQueryItem |
| Methods inherited from class mesquite.lib.characters.CharacterStates |
|---|
checkIllegalNode, getName, getParentCharacter, getParentData, getTaxa, makeCharacterState, setName, setParentCharacter, setParentData, setTaxa, toExternal, toInternal, toStringWithDetails |
| 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.AdjustableDistribution |
|---|
adjustSize, deassignStates, setCharacterState, setParentCharacter, setParentData, tradeStatesBetweenTaxa |
| Methods inherited from interface mesquite.lib.characters.CharacterStatesHolder |
|---|
firstIsGreater, getCharacterDataClass, getCharacterState, getCharacterState, getDefaultModel, getNumNodes, getNumTaxa, getParentCharacter, getParentData, getStateClass, getTaxa, isInapplicable, isUnassigned, isUncertain, logStates, statesEqual, toString, toStringWithDetails |
| Methods inherited from interface mesquite.lib.Listable |
|---|
getName |
| Methods inherited from interface mesquite.lib.Renamable |
|---|
setName |
| Constructor Detail |
|---|
public ContinuousHistory(Taxa taxa,
int numNodes,
ContinuousData data)
| Method Detail |
|---|
public CharacterHistory clone(CharacterHistory s)
CharacterHistory
clone in interface CharacterHistorypublic CharacterDistribution getStatesAtTips(Tree tree)
getStatesAtTips in interface CharacterHistorypublic CharacterDistribution getObservedStates()
getObservedStates in interface CharacterHistorypublic void setObservedStates(CharacterDistribution observed)
setObservedStates in interface CharacterHistorypublic CharacterHistory adjustSize(Tree tree)
adjustSize in interface CharacterHistory
public void prepareColors(Tree tree,
int drawnRoot)
prepareColors in interface CharacterHistory
public int getColorsOfState(CharacterState state,
ColorDistribution colors,
MesquiteColorTable colorTable)
getColorsOfState in interface CharacterHistorypublic MesquiteColorTable getColorTable(MesquiteColorTable colorTable)
getColorTable in interface CharacterHistory
public int getColorsAtNode(int node,
ColorDistribution colors,
MesquiteColorTable stateColors,
boolean showWeights)
getColorsAtNode in interface CharacterHistory
public ColorEventVector getColorSequenceAtNode(int node,
MesquiteColorTable stateColors)
getColorSequenceAtNode in interface CharacterHistory
public int getLegendStates(java.awt.Color[] cs,
java.lang.String[] stateNames,
java.awt.Point[] tableMappings,
MesquiteColorTable stateColors)
CharacterHistory
getLegendStates in interface CharacterHistory
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||