package phylogenetics

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Continuous Time Markov Chain rate matrix

A rate matrix is the infinitesimal generator for a discrete-space continuous time markov process. It is basically a matrix such that all off-diagonal elements are positive and each diagonal element is minus the sum of all other elements in the row.

module type S = sig ... end
module Make (A : Alphabet.S_int) : S with type symbol := A.t and type vector := A.vector and type matrix := A.matrix
module Nucleotide : sig ... end
module Amino_acid : sig ... end
val make : int -> f:(int -> int -> float) -> Linear_algebra.mat

make n f is a n x n matrix such that f i j is the rate of transition from state i to state j. f is only called for i <> j.

val transition_probability_matrix : tau:float -> rates:float array array -> float array array
OCaml

Innovation. Community. Security.