hamming_distance
Hamming distance and similarity functions for hexadecimal feature-vector strings.
hamming_distance · Hamming distance and similarity functions for hexadecimal feature-vector strings.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100484 | hamming_distance | hamming_distance | 0.0.1 | RAG | MIT | C |
Usage
Sources:
hamming_distance version 0.0.1 compares equal-length hexadecimal strings bit by bit. It exposes raw and normalized distance and similarity functions.
Example
Inputs should be prevalidated as nonempty, equal-length, even-length strings matching ^[0-9A-Fa-f]+$. The old C parser does not reliably reject every non-hex character and does not account for a trailing half-byte in odd-length input. The repository has no current PostgreSQL compatibility statement, so test the exact build and inputs in isolation before relying on results.