The minimum value of each row is set to 0 and the maximum to 1.

scale_0_1(X)

Arguments

X

Numeric matrix.

Value

Numeric matrix.

Examples

raw_mat <- matrix(1:20, ncol = 5, nrow = 4)
norm_mat <- scale_0_1(raw_mat)