Normalize: Normalize and Norm

View source: R/Normalize.R

NormalizeR Documentation

Normalize and Norm

Description

Norm returns the euclidian norm of a vector, Normalize returns a vector with unit norm.

Usage

Normalize(x)

Norm(x)

Arguments

x

Numeric vector

Value

Normalized vector or inpout vector norm.

Author(s)

Diogo Melo, Guilherme Garcia

Examples

x <- rnorm(10)
n.x <- Normalize(x)
Norm(x)
Norm(n.x)

lem-usp/EvolQG documentation built on April 29, 2024, 12:14 p.m.