powered by
Normalize a matrix to specific range of values
norm_matrix_range(data, min_value = -1, max_value = 1)
a matrix
the new minimum value for the input data
the new maximum value for the input data
set.seed(1) mt = matrix(1:48, 8, 6) res = norm_matrix_range(mt, min_value = -1, max_value = 1)
Run the code above in your browser using DataLab