Fast Computation of Pairwise Hamming Distances

Pairwise Hamming distances are computed between the rows of a binary (0/1) matrix using highly optimized 'C' code. The input is an integer matrix where each row represents a binary feature vector and returns a symmetric integer matrix of pairwise distances. Internally, rows are bit-packed into 64-bit words for fast XOR-based comparisons, with hardware-accelerated popcount operations to count differences. 'OpenMP' parallelization ensures efficient performance for large matrices.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("FastHamming")

1.3 by Ravi Varadhan, 2 months ago


Browse source code at https://github.com/cran/FastHamming


Authors: Ravi Varadhan [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


System requirements: C compiler (C99), OpenMP


See at CRAN