RGAR: Compute the Relative Generalized Anti-Robinson (RGAR) score

View source: R/metrics_functions.R

RGARR Documentation

Compute the Relative Generalized Anti-Robinson (RGAR) score

Description

This function returns the relative GAR score, representing the proportion of Anti-Robinson violations over the total number of evaluated triplets.

Usage

RGAR(mat_sorted, w = NULL)

Arguments

mat_sorted

A numeric, symmetric sorted distance matrix.

w

Window size (integer). If NULL, uses global comparisons (equivalent to AR normalized).

Value

The RGAR score (between 0 and 1).

Please refer to GAP for complete usage examples.


GAPR documentation built on June 8, 2025, 1:50 p.m.

Related to RGAR in GAPR...