getHammingDistance {flintyR}R Documentation

A Hamming Distance Vector Calculator

Description

Computes all pairwise Hamming distances for a binary matrix \mathbf{X}.

Usage

getHammingDistance(X)

Arguments

X

The N \times P binary matrix

Details

Dependencies: hamming_bitwise from fast_dist_calc.cpp

Value

A length {N \choose 2} vector of pairwise Hamming distances

Examples

X <- matrix(nrow = 5, ncol = 10, rbinom(50, 1, 0.5))
getHammingDistance(X)


[Package flintyR version 0.1.0 Index]