unisort: Computing the indexes of j-th smallest values of each row

Description Usage Arguments Value See Also Examples

View source: R/RcppExports.R

Description

This function sorts separately each row of a integer matrix and returns a matrix in which the value in i-th row and j-th column represent the index of the j-th smallest value of the i-th row.

Usage

1

Arguments

x

a integer matrix

Value

a integer matrix with indexes indicating positions of j-th smallest element in each row

See Also

runibic calculateLCS runiDiscretize

Examples

1
2
A <- matrix(c(4, 3, 1, 2, 5, 8, 6, 7), nrow=2, byrow=TRUE)
unisort(A)

runibic documentation built on Nov. 8, 2020, 5:38 p.m.