walk_step {clustAnalytics} | R Documentation |
Modifies the matrix while keeping the column and row sums constant, as well as leaving the positions strictly preceding (k,l) in lexicographical order invariant.
walk_step(M, k, l)
M |
matrix |
k , l |
Coordinates of the first element that is not invariant |
boolean indicating whether the step left the matrix invariant