normalizeRsphere {nemBM} | R Documentation |
Normalize values on a sphere
Description
Normalizes values of a vector such that the sum of squared elements equal to r^2
.
Usage
normalizeRsphere(x, r = 1)
Arguments
x |
A vector or a matrix with values to be normalized. |
r |
The diameter of a sphere, default 1. |
Value
It returns a data frame with normalized values.
Author(s)
Marjan Cugmas
Examples
normalizeRsphere(x = c(1, 0.5, 0.4))
[Package nemBM version 1.00.01 Index]