Function Utils::normalizeVec

Function Documentation

arma::vec Utils::normalizeVec(const arma::vec &v)

Normalizes a vector according to the “equilibrium normalization”. Namely, we divide for the largest absolute value among the elements of the vector. v is the input vector

Returns

The normalized vector