neighborhood_sorting: A sorting function using the Neighborhood algorithm

Description Usage Arguments Value

View source: R/SPIN.r

Description

A sorting function using the Neighborhood algorithm

Usage

1
neighborhood_sorting(d, weights_mat = NULL, max_iter = 100)

Arguments

d

A matrix containing n-by-n cell distance.

weights_mat

A weight matrix of size n-by-n.

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.