PRTools contents

PRTools manual

islabtype

ISLABTYPE

Test dataset label type

    N = ISLABTYPE(A,TYPE)
    N = ISLABTYPE(A,TYPE1,TYPE2)
    ISLABTYPE(A,TYPE)
    ISLABTYPE(A,TYPE1,TYPE2)

Input
 A Dataset  TYPEx Label type: 'crisp', 'soft', 'target'

Output
 N 1 if A has label type TYPE, or labeltype TYPE1 _or_ TYPE2;
 0 otherwise

Description

If this routine is called without any output arguments an error is  generated if the label type is not equal to one of the supplied ones.  (i.e. it acts as an assertion).

PRTools contents

PRTools manual