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

Description Usage Arguments Value

View source: R/SPIN.r

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).


uSORT documentation built on Nov. 8, 2020, 5:18 p.m.