A sorting function using the Side-to-Side (STS) algorithm

Share:

Description

A sorting function using the Side-to-Side (STS) algorithm

Usage

1
STS_sorting(d, max_iter = 10)

Arguments

d

A matrix containing n-by-n cell distance.

max_iter

An integer number indicating the maximum number of iteration if sorting does not converge.

Value

A list containing ordering(a vector of re-ordered sequence) and cost(a numeric value).

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.