normalization {inferCSN} | R Documentation |
Normalize numeric vector
Description
Normalize numeric vector
Usage
normalization(x, method = "max_min", na_rm = TRUE)
Arguments
x |
Input numeric vector. |
method |
Method used for normalization. |
na_rm |
Whether to remove |
Value
Normalized numeric vector
Examples
nums <- c(runif(2), NA, -runif(2))
nums
normalization(nums, method = "max_min")
normalization(nums, method = "maximum")
normalization(nums, method = "sum")
normalization(nums, method = "softmax")
normalization(nums, method = "z_score")
normalization(nums, method = "mad")
normalization(nums, method = "unit_vector")
normalization(nums, method = "unit_vector", na_rm = FALSE)
[Package inferCSN version 1.0.8 Index]