ETcVnNormalizationType

Offers normalization types.

Syntax

Definition:

enum ETcVnNormalizationType : LONG
{
    NT_INF               = 1,
    NT_L1                = 2,
    NT_L2                = 4,
    NT_L2SQR             = 5,
    NT_HAMMING           = 6,
    NT_HAMMING2          = 7,
    NT_RELATIVE_INF      = 9,
    NT_RELATIVE_L1       = 10,
    NT_RELATIVE_L2       = 12,
    NT_RELATIVE_L2SQR    = 13,
    NT_RELATIVE_HAMMING  = 14,
    NT_RELATIVE_HAMMING2 = 15,
    NT_MINMAX            = 32
};

Values

Name

Description

NT_INF

Infinity norm

NT_L1

L1 norm

NT_L2

L2 (euclidean) norm

NT_L2SQR

Squared L2 norm

NT_HAMMING

Hamming distance (bitwise)

NT_HAMMING2

Hamming distance (each 2 bits combined to one)

NT_RELATIVE_INF

Infinity norm (when comparing 2 arrays, the norm of their difference is divided by the norm of the second array)

NT_RELATIVE_L1

L1 norm (when comparing 2 arrays, the norm of their difference is divided by the norm of the second array)

NT_RELATIVE_L2

L2 (euclidean) norm (when comparing 2 arrays, the norm of their difference is divided by the norm of the second array)

NT_RELATIVE_L2SQR

Squared L2 norm (when comparing 2 arrays, the norm of their difference is divided by the norm of the second array)

NT_RELATIVE_HAMMING

Hamming distance (bitwise; when comparing 2 arrays, the norm of their difference is divided by the norm of the second array)

NT_RELATIVE_HAMMING2

Hamming distance (each 2 bits combined to one; when comparing 2 arrays, the norm of their difference is divided by the norm of the second array)

NT_MINMAX

Normalize the values to a range given by a minimum and a maximum value.