Scale a numeric vector using Z-normalization
z_normalization.Rd
This function is used to scale a numeric vector using Z-normalization. NA
would be ignored. This is an internal function for cal_Activity()
, getActivity_individual()
, getActivity_inBatch()
.
Examples
z_normalization(c(1,2,3,4,5,NA,6,7,8,9))
#> [1] -1.4605935 -1.0954451 -0.7302967 -0.3651484 0.0000000 0.3651484 0.7302967
#> [8] 1.0954451 1.4605935