Learn R Programming

evolqg (version 0.1-7)

Normalize: Normalize and Norm

Description

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

Usage

Normalize(x)

Norm(x)

Arguments

x
Numeric vector

Value

  • Normalized vector or inpout vector norm.

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