KendallInfo: Kendall embedding of pairwise relative ordering

Description Usage Arguments Value Note Author(s) References Examples

Description

Performs between-column comparison on a matrix of sequences denoting sign([,i] - [,j]) for i < j.

Usage

1

Arguments

r

A vector or a matrix of dimension N x n with sequences in rows.

Value

A matrix of dimension N x choose(n,2) with entry values -1/1/0 representing pairwise comparisons of vector values for each row. Specifically, a -1 value denotes that there is an increase between the two columns, 1 a decrease, and 0 indicates that the column values are identical in the same row.

Note

A matrix with one row is returned if the input "r" is a vector.

Author(s)

Yunlong Jiao

References

Yunlong Jiao, Jean-Philippe Vert. "The Kendall and Mallows Kernels for Permutations." IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), vol. 40, no. 7, pp. 1755-1769, 2018. DOI:10.1109/TPAMI.2017.2719680

Examples

1
2
r <- do.call('rbind', combinat::permn(1:5))
KendallInfo(r)

YunlongJiao/kernrank documentation built on May 10, 2019, 1:13 a.m.