norm.linear: Linear normalisation

Description Usage Arguments Details Value

View source: R/som.nn.util.R

Description

Calculates a linear normalisation for the class frequencies.

Usage

1

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.


som.nn documentation built on May 2, 2019, 8:26 a.m.