Computes the contrast of the correlation matrix obtained by adding u to the diagonal of the precision matrix. This function is used to find the value of u that maximises the contrast when constructing a diagonally dominant precision matrix.
MaxContrast(u, omega, digits = 3)
A single number, the contrast of the generated precision matrix.
constant u added to the diagonal of the precision matrix.
positive semi-definite precision matrix.
number of digits to use in the definition of the contrast.