PRTools contents

PRTools manual

selclass

SELCLASS

Select a single class from a dataset

   [B,J] = SELCLASS(A,CLASS,LABLISTNAME)
    B = A*SELCLASS([],CLASS,LABLISTNAME)

Input
 A Dataset
 CLASS Integer: Indices of desired classes in CLASSNAMES(A) String array: Class names
 NAME Integer: Index of desired labeling, see GETLABLISTNAMES String: Name of desired labeling, see GETLABLISTNAMES Default: actual LABLIST

Output
 B Subset of the dataset A
 J Indices of returned objects in dataset A: B = A(J,:)

Description

B is a subset of the dataset A defined by the set of classes (CLASS). In  case of a multi-labeling system (see MULTI_LABELING) the desired CLAS should refer to the label list given in LABLISTNAME.

In case A is soft labeled or is a target dataset by B = SELDAT(A,CLASS) the entire dataset is returned, but the labels or targets are reduced to  the selected class (target) CLASS.

See also

datasets, seldat, classnames, gendat, getlablist, getclassi, remclass, getlablistnames, multi_labeling,

PRTools contents

PRTools manual