nws_tools.rm_negatives

nws_tools.rm_negatives(corrs)[source]

Remove negative entries from connection matrices

Parameters:

corrs : NumPy 3darray

An array of K matrices of dimension N-by-N. Format is corrs.shape = (N,N,K), such that corrs[:,:,i] is the i-th N x N matrix

Returns:

nws : NumPy 3darray

Same format as input tensor but corrs >= 0.

See also

None

Notes

None