ham: Hamming Distance

Description Usage Arguments Value Author(s) Examples

Description

Returns the Hamming distance between two full rankings.

Usage

1
ham(a, b)

Arguments

a, b

integer vectors

Value

The Hamming distance between the two rankings.

Author(s)

Lucy Small, lucy.small@ucdconnect.ie

Examples

1
2
3
a = c(3,1,2,5,4)
b = c(1,2,3,4,5)
ham(a,b)

lucyov26/RankMetric documentation built on May 6, 2019, 9:09 a.m.