l_p_norm | R Documentation |
A function used to calculate various L_p norms
l_p_norm(x, p = "max", type = "lp")
x |
Observed data |
p |
index of the norm |
type |
Kind of norm used (currently only lp and sum of squares norms are supported) |
The norm of x, of type type
of index p. For example,
the euclidean norm x has p = 2, type = "lp"
x <- c(3, 4) l_p_norm(x, p = 2, type = "lp") l_p_norm(x, p = 2, type = "ssq") l_p_norm(x, p = "max", type = "lp") l_p_norm(x, p = 1, type = "ssq") y <- c(3, 4, 5, 6) l_p_norm(y, p = 4, type = "lp") l_p_norm(y, p = 3, type = "ssq")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.