Skip to contents

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().

Usage

z_normalization(x)

Arguments

x

a vector of numbers for z-normalization

Value

a vector of numbers with z-normalized

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