check_square_stochastic: Check matrix

Description Usage Arguments Value Author(s) Examples

View source: R/check_square_stochastic.R

Description

Check if a matrix is square and stochastic

Usage

1

Arguments

X

matrix

Value

Bool: TRUE if the matrix is square and stochastic, FALSE otherwise

Author(s)

Luz Pascal

Examples

1
2
3
4
5
## Not run: 
mat = matrix(c(1,0,0,1), ncol = 2)
check_square_stochastic(mat)

## End(Not run)

conservation-decisions/smsPOMDP documentation built on Oct. 27, 2020, 10:44 p.m.