normalize | R Documentation |
Normalize a matrix or nd-array
normalize(x, axis = -1, order = 2)
x |
Matrix or array to normalize |
axis |
Axis along which to normalize. Axis indexes are 1-based (pass -1 to select the last axis). |
order |
Normalization order (e.g. 2 for L2 norm) |
A normalized copy of the array.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.