Learn R Programming

manifold (version 0.1.2)

Normalize: Normalize a vector

Description

Normalize a vector

Usage

Normalize(v, tol = 1e-10)

Value

A vector with the same length as `v` but having unit Euclidean norm

Arguments

v

A vector to be normalized to have a unit norm

tol

The tolerance value for deciding the v is actually 0, cannot be normalized, and thus return just the 0 vector