sort occurrence matrix to minimize its spatial variance Is there any algorithm or an approach that sort occurrence matrix to reduce its spatial variance. I mean by spatial variance moving window variance (n*n moving box).
In case someone got the same concern, https://gmarti.gitlab.io/ml/2017/09/07/how-to-sort-distance-matrix.html