Normalises a 1 dimensional vector towards unit p norm. By default, p = 2 is used. For a given vector, eg: c(1,2,3), norm value is calculated as 'x / |x|' where '|x|' is calculated as the square root of sum of square of values in the given vector.
vector containing integers or numeric values.
integer, default: 2
a vector containing normalised values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.