Learn R Programming

GAPR (version 0.1.0)

RGAR: 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, order, w = NULL)

Value

The RGAR score (between 0 and 1).

Please refer to GAP for complete usage examples.

Arguments

mat

A symmetric numeric distance matrix.

order

A permutation vector specifying the new row/column order.

w

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