generalTimeReversible(Double[] rates, Double[] freq, Number meanRate)

The general time reversible instantaneous rate matrix. Takes relative rates and base frequencies and produces an general time reversible rate matrix.

Parameters

  • Double[] rates - the relative rates of the GTR process.
  • Double[] freq - the base frequencies.
  • Number meanRate - (optional) the base frequencies.

Return type

Double[][]

Examples

  • https://linguaphylo.github.io/tutorials/discrete-phylogeography/