Learn R Programming

RRMLRfMC (version 0.4.0)

norm: norm

Description

This function is used to normalize a vector to have unit length

Usage

norm(x)

Arguments

x

a numeric vector

Value

a normalized vector with length 1