smftools.preprocessing.min_non_diagonal

smftools.preprocessing.min_non_diagonal#

Functions

min_non_diagonal(matrix)

Takes a matrix and returns the smallest value from each row with the diagonal masked.

smftools.preprocessing.min_non_diagonal.min_non_diagonal(matrix)#

Takes a matrix and returns the smallest value from each row with the diagonal masked.

Parameters:

matrix (ndarray) -- A 2D ndarray.

Returns:

A list of minimum values from each row of the matrix

Return type:

min_values (list)