Description Usage Arguments Value See Also Examples
This function checks if a matrix is Hermitian, that is, if its below and above diagonal elements are equal.
1 | is.hermitian(covmat)
|
covmat |
A square matrix. |
TRUE
or FALSE
.
is.pd
to check if a matrix is positive-definite and
is.within.bounds
to check whether all covariances in a
covariance matrix are within boundaries.
1 2 3 4 5 | data(stiles)
st.cov <- cov(stiles[-1])
is.hermitian(st.cov) # TRUE
st.cov[5,3] <- 10
is.hermitian(st.cov) # FALSE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.