Skip to content

[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#


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


Last update: 2021-03-03