check_unit_norm | R Documentation |
Utility for normalizing data without unit norms.
check_unit_norm(x, warnings = TRUE)
x |
observations claimed to have unit norms. Either a matrix of size
|
warnings |
whether to show warnings if the normalization of
|
A curated version of x
with unit-norm observations and
possible zeros excluded.
Eduardo García-Portugués, Davy Paindaveine, and Thomas Verdebout.
check_unit_norm(c(sqrt(2), sqrt(2), 0) / 2)
check_unit_norm(1:3, warnings = FALSE)
check_unit_norm(rbind(c(0, 0, 0), c(0, 0, 1), 1:3, c(NA, 0, 1)),
warnings = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.