Skip to contents

Zero-mean, unit-norm flatten of a matrix

Usage

normalize_vec(v)

Arguments

v

A numeric matrix or vector.

Value

A zero-mean vector scaled to unit norm (unchanged if near-constant).