View source: R/check_covariance_matrix.R
check_covariance_matrix | R Documentation |
These functions check whether the input fulfills the properties of a covariance matrix.
check_covariance_matrix(x, dim = NULL, tolerance = sqrt(.Machine$double.eps))
assert_covariance_matrix(
x,
dim = NULL,
tolerance = sqrt(.Machine$double.eps),
.var.name = checkmate::vname(x),
add = NULL
)
test_covariance_matrix(x, dim = NULL, tolerance = sqrt(.Machine$double.eps))
x |
[any] |
dim |
[ |
tolerance |
[ |
.var.name |
[ |
add |
[ |
Same as documented in check_matrix
.
Other matrix helpers:
check_correlation_matrix()
,
check_transition_probability_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()
M <- matrix(c(1, 2, 3, 2, 1, 2, 3, 2, 1), nrow = 3)
check_covariance_matrix(M)
test_covariance_matrix(M)
## Not run:
assert_covariance_matrix(M)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.