Normalize | R Documentation |
Normalize a vector
Normalize(v, tol = 1e-10)
v |
A vector to be normalized to have a unit norm |
tol |
The tolerance value for deciding the v is actually 0, cannot be normalized, and thus return just the 0 vector |
A vector with the same length as 'v' but having unit Euclidean norm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.