This function returns the relative GAR score, representing the proportion of Anti-Robinson violations over the total number of evaluated triplets.
RGAR(mat, order, w = NULL)
The RGAR score (between 0 and 1).
Please refer to GAP
for complete usage examples.
A symmetric numeric distance matrix.
A permutation vector specifying the new row/column order.
Window size (integer). If NULL, uses global comparisons (equivalent to AR normalized).