checkGamma | R Documentation |
Checks whether the matrix given is a valid Huesler-Reiss parameter matrix in the role of \eGamma, \eTheta, or \eSigma, respectively.
checkGamma(Gamma, alert = NULL, tol = get_small_tol(), returnBoolean = FALSE)
checkSigmaTheta(
M,
k,
full,
matrixName = "Sigma",
tol = get_small_tol(),
alert = NULL,
returnBoolean = FALSE
)
checkTheta(
Theta,
k = NULL,
full = FALSE,
tol = get_small_tol(),
alert = NULL,
returnBoolean = FALSE
)
checkSigma(
Sigma,
k = NULL,
full = FALSE,
tol = get_small_tol(),
alert = NULL,
returnBoolean = FALSE
)
checkMatrix(
M,
name = c("Gamma", "Sigma", "Theta")[1],
k = NULL,
full = FALSE,
tol = get_small_tol(),
alert = NULL,
returnBoolean = FALSE
)
is_valid_Gamma(M, tol = get_small_tol())
is_valid_Theta(Theta, k = NULL, full = FALSE, tol = get_small_tol())
is_valid_Sigma(Sigma, k = NULL, full = FALSE, tol = get_small_tol())
Gamma |
Numeric \dxd variogram matrix. |
alert |
Passed to |
tol |
Numeric scalar. Values below this are considered as zero, when zeros are required (e.g. row-sums). |
returnBoolean |
Logical scalar, set to |
M |
Numeric matrix, \eGamma, \eSigma, or \eTheta. |
k |
|
full |
Logical. If |
matrixName |
Name of the matrix to be used in alerts/error messages. |
Theta |
Numeric \dxd or \d1xd1 precision matrix. |
Sigma |
Numeric \dxd or \d1xd1 covariance matrix. |
name |
Name of the input matrix, indicating which other function to call. |
The function is_valid_*
are a wrapper around check*
, with arguments
alert=FALSE
and returnBoolean=TRUE
.
For check*
, the input matrix, passed through ensure_matrix_symmetry_and_truncate_zeros
.
For is_valid_*
, a boolean indicating whether the input is a valid parameter matrix.
Other input validation functions:
check_graph()
,
check_partial_matrix_and_graph()
,
ensure_matrix_symmetry()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.