PRTools contents

PRTools manual

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. This routine can be used to find  the index of the label directly.

See also

datasets, setlabels, setlablist, getlablist,

PRTools contents

PRTools manual