kendall Tau BPrimitive
Computes Kendall’s τ-b correlation on primitive arrays, with tie correction.
Complexity: O(n²).
Allocation-free: does not build explicit pairs.
Corrects for ties in X and Y dimensions.
Return
Kendall’s τ-b in [-1.0, +1.0]
, or 0.0
if denominator is 0
Parameters
x
left-hand vector
y
right-hand vector