Contrast | R Documentation |
Computes matrix contrast, defined as the number of unique truncated entries with a specified number of digits.
Contrast(mat, digits = 3)
mat |
input matrix. |
digits |
number of digits to use. |
A single number, the contrast of the input matrix.
ourstabilityselectionfake
# Example 1
mat <- matrix(c(0.1, 0.2, 0.2, 0.2), ncol = 2, byrow = TRUE)
Contrast(mat)
# Example 2
mat <- matrix(c(0.1, 0.2, 0.2, 0.3), ncol = 2, byrow = TRUE)
Contrast(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.