Skip to contents

groupdiff_tau() computes \(min(x/y, y/x)\), i.e. the smallest symmetric ratio between \(x\) and eqny that is smaller than 1. If \(x\) is a vector, the symmetric ratio between all elements in \(x\) is computed.

groupdiff_absdiff() computes \(max(abs(x-y, y-x))\), i.e. the smallest absolute difference between \(x\) and \(y\). If \(x\) is a vector, the symmetric absolute difference between all elements in \(x\) is computed.

Usage

groupdiff_tau(x)

groupdiff_absdiff(x)

groupdiff_diff(x)

Arguments

x

(numeric())
Measured performance in group 1, 2, ...

Value

A single numeric.

Examples

groupdiff_tau(1:3)
#> [1] 0.3333333
groupdiff_diff(1:3)
#> [1] -2
groupdiff_absdiff(1:3)
#> [1] 2