PRTools contents

PRTools manual

classnames

CLASSNAMES

Get names of classes of dataset or classifier

   NAMES = CLASSNAMES(A,C)
   NAMES = CLASSNAMES(W,C)

Input
 A Dataset
 W Trained classifier
 C Class number(s) in class label list, default: all

Output
 NAMES Names of classes (strings or numbers)

Description

Returns the names of the classes used in the dataset A or the classes  used by the classifier W. If for datasets no output is requested the  names and the sizes of the classes are printed on the screen.  If given, just the names of the classes corresponding to the indices in  C are returned.

See also

datasets, mappings, classsizes,

PRTools contents

PRTools manual