mesquite.cont.lib
Class MContinuousHistory

java.lang.Object
  extended by mesquite.lib.characters.MCharactersStates
      extended by mesquite.cont.lib.MContinuousStates
          extended by mesquite.cont.lib.MContinuousDistribution
              extended by mesquite.cont.lib.MContinuousAdjustable
                  extended by mesquite.cont.lib.MContinuousHistory
All Implemented Interfaces:
ItemContainer, Annotatable, MAdjustableDistribution, MCharactersDistribution, MCharactersHistory, MCharactersStatesHolder, Listable, Renamable

public class MContinuousHistory
extends MContinuousAdjustable
implements MCharactersHistory

A class for an array of continuous character states for many characters, at each of the nodes.


Field Summary
 
Fields inherited from class mesquite.cont.lib.MContinuousAdjustable
firstMatrix, matrices
 
Fields inherited from class mesquite.lib.characters.MCharactersStates
data
 
Constructor Summary
MContinuousHistory(Taxa taxa)
           
MContinuousHistory(Taxa taxa, int numChars, int numNodes)
           
 
Method Summary
 CharacterHistory getCharacterHistory(int ic)
          extract the states of character ic and return as CharacterHistory
 void getMinMax(Tree tree, int root, int item, MesquiteDouble min, MesquiteDouble max)
           
 void transferFrom(int ic, CharacterHistory s)
          obtain the states of character ic from the given CharacterDistribution
 
Methods inherited from class mesquite.cont.lib.MContinuousAdjustable
addItem, addItem, deassignStates, establishItem, establishItem, getAnnotation, getCharacterDistribution, getItem, getItemName, getItemNumber, getNumberOfItems, getNumChars, getNumNodes, getNumTaxa, getState, getState, removeItem, setAnnotation, setCharacterState, setItemReference, setItemsAs, setParentData, setSize, setState, setState, setStates, setStates, tradeStatesBetweenTaxa, transferFrom
 
Methods inherited from class mesquite.cont.lib.MContinuousDistribution
adjustHistorySize, makeBlankAdjustable, makeCharacterData
 
Methods inherited from class mesquite.cont.lib.MContinuousStates
allCombinable, allCombinable, getCharacterDataClass, getCharacterState, getDataTypeName, getID, getItemReference, getItemReference, getMatrix, getNumItems, getStateClass, toString, userQueryItem
 
Methods inherited from class mesquite.lib.characters.MCharactersStates
checkIllegalNode, getBasisTree, getName, getParentData, getTaxa, isCurrentlyIncluded, matrixToString, setBasisTree, setName, setTaxa
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mesquite.lib.characters.MAdjustableDistribution
deassignStates, setCharacterState, setParentData, setSize, setTaxa, tradeStatesBetweenTaxa, transferFrom
 
Methods inherited from interface mesquite.lib.characters.MCharactersDistribution
adjustHistorySize, getBasisTree, getCharacterDistribution, makeBlankAdjustable, makeCharacterData, setBasisTree
 
Methods inherited from interface mesquite.lib.characters.MCharactersStatesHolder
getCharacterDataClass, getCharacterState, getDataTypeName, getNumChars, getNumNodes, getNumTaxa, getParentData, getStateClass, getTaxa, isCurrentlyIncluded
 
Methods inherited from interface mesquite.lib.Listable
getName
 
Methods inherited from interface mesquite.lib.Renamable
setName
 
Methods inherited from interface mesquite.lib.Annotatable
getAnnotation, setAnnotation
 

Constructor Detail

MContinuousHistory

public MContinuousHistory(Taxa taxa,
                          int numChars,
                          int numNodes)

MContinuousHistory

public MContinuousHistory(Taxa taxa)
Method Detail

getCharacterHistory

public CharacterHistory getCharacterHistory(int ic)
extract the states of character ic and return as CharacterHistory

Specified by:
getCharacterHistory in interface MCharactersHistory

transferFrom

public void transferFrom(int ic,
                         CharacterHistory s)
obtain the states of character ic from the given CharacterDistribution

Specified by:
transferFrom in interface MCharactersHistory

getMinMax

public void getMinMax(Tree tree,
                      int root,
                      int item,
                      MesquiteDouble min,
                      MesquiteDouble max)