sortandcut.Rd
An implementation of the sort-and-cut algorithm which is a mixture of the top-down-partitioning algorithm used by cfluctile and the reordering techniques available through optile. See details.
sortandcut(x,iter=20, tau0 = NULL, fun = "BCC", method = "WBCI")
x | A matrix or 2D table. |
---|---|
iter | The number of random initial orderings for optile. |
tau0 | The minimum criterion value for a new cut. See cfluctile. |
fun | The reordering function used by optile. Currently |
method | The method argument for cfluctile which defines the criterion used to find an optimal partition. |
The algorithm sorts a matrix using optile and cuts the reordered matrix once using cfluctile with nsplit = 1
.
Then the same procedure is applied to the resulting submatrices at the top left and the bottom right. The partitioning stops when the best cut leads to a criterion below tau0
.
The reordered matrix. The row and column order vectors are attached as an attributes attr(x ,"orders")
.