algorithm_functions.normalisation#

algorithm_functions.normalisation(matrix: ndarray) ndarray#

Normalises a matrix so that the row sums are equal to 1.

Parameters:

matrix (np.ndarray) – The matrix that is normalised.

Returns:

np.ndarray – The normalised matrix.