RateMAndStateSpace: Rate matrix and state space of the block counting process

Description Usage Arguments Value Examples

View source: R/BlockCountingProcess.R

Description

RateMatAndStateSpace finds the state space and corresponding rate matrix for the block counting process for a number of samples n in the standard coalescent.

Usage

1

Arguments

n

Number of samples

Value

List consisting of RateM: Rate matrix StSpM: Matrix with rows corresponding to the states A state is a n-dimensional row vector (a1,...,an). For example the beginning state is (n,0,...,0), the next state is (n-2,1,0,...,0), and the ending state is (0,...,0,1)

Examples

1

rivasiker/phasty documentation built on June 15, 2021, 9:18 p.m.