normalizeRsphere: Normalize values on a sphere

normalizeRsphereR 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))

nemBM documentation built on Dec. 16, 2022, 5:06 p.m.