Normalize {spheresmooth}R 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))

[Package spheresmooth version 0.1.0 Index]