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