norm_matrix_range: Normalize a matrix to specific range of values

Description Usage Arguments Value Examples

View source: R/open_image_rscript.R

Description

Normalize a matrix to specific range of values

Usage

1
norm_matrix_range(data, min_value = -1, max_value = 1)

Arguments

data

a matrix

min_value

the new minimum value for the input data

max_value

the new maximum value for the input data

Value

a matrix

Examples

1
2
3
4
set.seed(1)
mt = matrix(1:48, 8, 6)

res = norm_matrix_range(mt, min_value = -1, max_value = 1)

OpenImageR documentation built on Sept. 10, 2021, 5:08 p.m.