Normalize: Normalize a vector

View source: R/Simulation.R

NormalizeR Documentation

Normalize a vector

Description

Normalize a vector

Usage

Normalize(v, tol = 1e-10)

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

Value

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


manifold documentation built on Oct. 4, 2022, 5:06 p.m.

Related to Normalize in manifold...