lewisMK(Integer numStates, Number meanRate)

The LewisMK Q matrix construction function. Takes a mean rate and a number of states and produces a LewisMK Q matrix.

Parameters

  • Integer numStates - the number of states
  • Number meanRate - (optional) the mean rate of the LewisMK process. Default value is 1.0.

Return type

Double[][]

Examples

  • lewisMKCoalescent.lphy

Reference

Lewis, P. O. (2001). A likelihood approach to estimating phylogeny from discrete morphological character data. Systematic biology, 50(6), 913-925.https://doi.org/10.1080/106351501753462876