[source]

Hamming#

A categorical distance function that measures distance as the number of substitutions necessary to convert one sample to the other.

Data Type Compatibility: Categorical

Parameters#

This kernel does not have any parameters.

Example#

use Rubix\ML\Kernels\Distance\Hamming;

$kernel = new Hamming();

References#

  • R. W. Hamming. (1950). Error detecting and error correcting codes.