Normalize: Normalize a matrix row-wise

View source: R/linear-spherical-spline.R

NormalizeR Documentation

Normalize a matrix row-wise

Description

This function normalizes the rows of the input matrix x by dividing each row by its L2 norm (Euclidean norm).

Usage

Normalize(x)

Arguments

x

Numeric matrix.

Value

Numeric matrix with normalized rows.

Examples

Normalize(matrix(c(1,2,3,4,5,6), nrow = 2, byrow = TRUE))

spheresmooth documentation built on May 29, 2024, 3:15 a.m.