Learn R Programming

Ease (version 0.1.2)

is.probability.matrix: Test if a matrix is of probability

Description

Test if a matrix is of probability

Usage

is.probability.matrix(x)

Value

A logical corresponding to whether x is a probability matrix (sum of rows equal to 1).

Arguments

x

a matrix.

Author

Ehouarn Le Faou