check.norm | R Documentation |
This function checks whether the the norm used in the problem is a 1-norm or a 2-norm. If not, an error message is displayed.
check.norm(x, name.var)
x |
The variable to be checked. |
name.var |
The name of the variable. |
The following input for norm
will be interpreted as the
1-norm:
1
(numeric
)
"1"
(string
)
"L1"
"one"
"o"
"taxicab"
The following input for norm
will be interpreted as the 2-norm:
2
(numeric
)
"2"
(string
)
"L2"
"two"
"t"
"e"
"euclidean"
Capitalization is not an issue here as the text will be brought to the lower case.
Nothing is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.