Learn R Programming

evolqg (version 0.3-4)

Normalize: Normalize and Norm

Description

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

Usage

Normalize(x)

Norm(x)

Value

Normalized vector or inpout vector norm.

Arguments

x

Numeric vector

Author

Diogo Melo, Guilherme Garcia

Examples

Run this code
x <- rnorm(10)
n.x <- Normalize(x)
Norm(x)
Norm(n.x)

Run the code above in your browser using DataLab