Crandore Hub

FastHamming

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.

Versions across snapshots

VersionRepositoryFileSize
1.2 rolling source/ R- FastHamming_1.2.tar.gz 3.5 KiB
1.2 latest source/ R- FastHamming_1.2.tar.gz 3.5 KiB
1.2 2026-04-23 source/ R- FastHamming_1.2.tar.gz 3.5 KiB
1.2 2026-04-09 windows/windows R-4.5 FastHamming_1.2.zip 143.0 KiB