class HammingDistance implements DistanceInterface
This class implements the hamming distance of two strings or sets.
To be used with numbers one should pass the numbers to decbin() first
and make sure the smaller number is properly padded with zeros.
Methods
int | dist(string $A, string $B) |