Returns the normalised vector, where the sum of squares is equal to 1
Examples
x <- rnorm(5)
norm_vec(x)
#> [1] -0.1859595 0.2961011 -0.5924321 -0.6358216 0.3499977
Returns the normalised vector, where the sum of squares is equal to 1
x <- rnorm(5)
norm_vec(x)
#> [1] -0.1859595 0.2961011 -0.5924321 -0.6358216 0.3499977