Skip to contents

Normalizes each row of a numeric data frame or matrix to unit L2 norm.

Usage

fun_sphere_norm(dfM)

Arguments

dfM

A data.frame or matrix

Value

A numeric matrix with each row normalized to unit L2 length