Check transition probability matrix
Source:R/check_transition_probability_matrix.R
check_transition_probability_matrix.Rd
These functions check whether the input is a transition probability matrix.
Usage
check_transition_probability_matrix(
x,
dim = NULL,
tolerance = sqrt(.Machine$double.eps)
)
assert_transition_probability_matrix(
x,
dim = NULL,
tolerance = sqrt(.Machine$double.eps),
.var.name = checkmate::vname(x),
add = NULL
)
test_transition_probability_matrix(
x,
dim = NULL,
tolerance = sqrt(.Machine$double.eps)
)
Arguments
- x
[any]
Object to check.- dim
[
integer(1)
]
The matrix dimension.- tolerance
[
numeric(1)
]
A non-negative tolerance value.- .var.name
[
character(1)
]
Name of the checked object to print in assertions. Defaults to the heuristic implemented invname
.- add
[
AssertCollection
]
Collection to store assertion messages. SeeAssertCollection
.
Value
Same as documented in check_matrix
.
See also
Other matrix helpers:
check_correlation_matrix()
,
check_covariance_matrix()
,
cov_to_chol()
,
diff_cov()
,
insert_matrix_column()
,
matrix_diagonal_indices()
,
matrix_indices()
,
sample_correlation_matrix()
,
sample_covariance_matrix()
,
sample_transition_probability_matrix()
,
stationary_distribution()