wag(Double[] freq, Number meanRate)

The WAG instantaneous rate matrix for amino acid.

Parameters

  • Double[] freq - (optional) the base frequencies.
  • Number meanRate - (optional) the mean rate of the process. default 1.0

Return type

Double[][]

Examples

  • wagCoalescent.lphy

Reference

Whelan, S., & Goldman, N. (2001). A general empirical model of protein evolution derived from multiple protein families using a maximum-likelihood approach. Molecular biology and evolution, 18(5), 691-699.https://doi.org/10.1093/oxfordjournals.molbev.a003851