Description Usage Arguments Details Value Author(s) See Also Examples
Matrix elements with an absolute value below the given threshold are set to zero.
1 | rm.denoise.mat(mat, threshold, keep.diag = TRUE)
|
mat |
The noisy input matrix. |
threshold |
Numerical value of the threshold. |
keep.diag |
A logical variable that determines if the diagonal of the matrix is thresholded or not. The default is |
The function outputs the number of non-zero matrix elements before and after thresholding.
The thresholded matrix.
Uwe Menzel <uwemenzel@gmail.com>
Estimate an objective threshold for signal-noise separation in random matrices: rm.matrix.validation
1 2 3 4 5 6 7 8 | set.seed(777)
random.matrix <- create.rand.mat(size = 1000, distrib = "norm")$rand.matr
dim(random.matrix)
## After identification of a proper candidate threshold:
cleaned.matrix <- rm.denoise.mat(random.matrix, threshold = 3.2, keep.diag = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.