Test if a matrix is of probability
is.probability.matrix(x)
x
a matrix.
A logical corresponding to whether x is a probability matrix (sum of rows equal to 1).
Ehouarn Le Faou