hamming.distance: Hamming Distances of Vectors

View source: R/evaluation_functions.R

hamming.distanceR Documentation

Hamming Distances of Vectors

Description

f both x and y are vectors, hamming.distance returns the Hamming distance (number of different elements) between this two vectors. If x is a matrix, the Hamming distances between the rows of x are computed and y is ignored.

Usage

hamming.distance(x, y = NULL)

Arguments

x

a vector or matrix.

y

an optional vector.

Value

distance matrix


pengminshi/MRtree documentation built on March 6, 2023, 4:20 p.m.