Learn R Programming

Ease (version 0.1.2)

is.correct.transition.matrix: Test if a matrix is a correct transition matrix

Description

Test if a matrix is a correct transition matrix

Usage

is.correct.transition.matrix(x, type, name)

Value

A logical corresponding to whether x is a correct transition matrix, i.e. a square matrix with dimensions greater than 0 and whose rows sum to 1.

Arguments

x

a matrix.

type

type of the matrice (mutation matrix ? recombination matrix ?)

name

the name of the matrix.

Author

Ehouarn Le Faou