norm_vecs | R Documentation |
Normalize the data so that the mean of the vectors is 0 and the variance of the vectors is 1. Here the variance of vectors is calculated by interpreting the deviation as the Euclidean distance, which means the trace of the (population) covariance matrix is 1.
norm_vecs(x)
x |
The matrix to be normalized. Each row of |
The normalized matrix with two attributions scale
and mean
, which are used for normalization.
norm_vecs(matrix(seq(1, 100), ncol = 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.