Function Utils::vecToBin

Function Documentation

int Utils::vecToBin(const arma::vec &x)

Convert a binary vector (0-1 entries) into an unique int.

Parameters

x – The input vector

Returns

The int encoding