GAR: Compute the Generalized Anti-Robinson (GAR) score

View source: R/metrics_functions.R

GARR Documentation

Compute the Generalized Anti-Robinson (GAR) score

Description

Calculates the number of Anti-Robinson violations within a specified window w, allowing evaluation of local structural consistency in the reordered matrix.

Usage

GAR(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).

Value

The GAR score (the total number of violations).

Please refer to GAP for complete usage examples.


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

Related to GAR in GAPR...