IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
normalize_rows.m File Reference

Detailed Description

Divides each row of cc by its sum, or leaves it untouched if its sum is zero.

Used to normalize a hits confusion matrix into a percentage confusion matrix.

Please note that it does not work well with negative numbers.

See also
clssr_d, irconfusion, clssr_ls

Definition in file normalize_rows.m.

Go to the source code of this file.

Functions

function normalize_rows (in cc)
 

Function Documentation

function normalize_rows ( in  cc)
Parameters
cc
Returns
matrix of same size as input