norm.linear {som.nn}R Documentation

Linear normalisation

Description

Calculates a linear normalisation for the class frequencies.

Usage

norm.linear(x)

Arguments

x

vector of votes for classes

Details

The function is applied to a vector to squeeze the values in a way that they sum up to 1.0:

som.nn.linnorm(x) = x / sum(x)

Linear normalisation is used to normalise class distrubution during prediction. Results seems often more reasonable, compared to softmax. The S4 predict function for Class SOMnn allows to specify the normalisation function as parameter.

Value

Vector of normalised values.


[Package som.nn version 1.4.4 Index]