Learn R Programming

HEMDAG (version 2.1.3)

normalize.max: Max normalization

Description

Function to normalize the scores of a flat scores matrix per class

Usage

normalize.max(S)

Arguments

S

matrix with the raw non normalized scores. Rows are examples and columns are classes

Value

A score matrix with the same dimensions of S, but with scores max/normalized separately for each class

Details

The scores of each class are normalized by dividing the score values for the maximum score of that class. If the max score of a class is zero, no normalization is needed, otherwise NaN value will be printed as results of 0 out of 0 division.

Examples

Run this code
# NOT RUN {
data(scores);
maxnorm <- normalize.max(S);
# }

Run the code above in your browser using DataLab