PRTools Contents

PRTools User Guide

getclassi

GETCLASSI

Get class index

    INDEX = GETCLASSI(A,LABEL)

Input
 A Dataset
 LABEL Label used to label the class in A

Output
 INDEX Index of LABEL in the label list of A

Description

In some routines like SELDAT and ROC classes should be defined  by their index in the label list of the dataset. This label list  can be retrieved by GETLABLIST or CLASSNAMES. GETCLASSI can be used to  find the index of the label directly.

See also

datasets, setlabels, setlablist, getlablist, classnames,

PRTools Contents

PRTools User Guide

This file has been automatically generated. If badly readable, use the help-command in Matlab.