multiclass

multiclass#

hamming_dist_matrix#

Calculates the hamming distance matrix for a data matrix `X` using SciPy.

Parameters (inputs)
----------
X: a pandas/polars DataFrame or a NumPy array. It represents a data matrix.

Returns (outputs)
-------
M: the hamming distance matrix between the rows of X.

hamming_dist#

Calculates the hamming distance between a pair of vectors.

Parameters (inputs)
----------
xi, xr: a pair of quantitative vectors. They represent a couple of statistical observations.

Returns (outputs)
-------
The Matching distance between the observations `xi` and `xr`.