View source: R/open_image_rscript.R
norm_matrix_range | R Documentation |
Normalize a matrix to specific range of values
norm_matrix_range(data, min_value = -1, max_value = 1)
data |
a matrix |
min_value |
the new minimum value for the input data |
max_value |
the new maximum value for the input data |
a matrix
set.seed(1)
mt = matrix(1:48, 8, 6)
res = norm_matrix_range(mt, min_value = -1, max_value = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.