Normalizer

A normalization preprocessor.

message Normalizer {
    enum NormType {
        LMax = 0;
        L1 = 1;
        L2 = 2;
    }

    NormType normType = 1;
}

Normalizer.NormType

There are three normalization modes, which have the corresponding formulas:

Max
max(xi)
L1
z=||x||1=i=1n|xi|
L2
z=||x||2=i=1nxi2
enum NormType {
    LMax = 0;
    L1 = 1;
    L2 = 2;
}