PRTools contents

PRTools manual

isvaldfile

ISVALDFILE

Test whether the argument is a valid datafile or dataset

    N = ISVALDFILE(A);
    N = ISVALDFILE(A,M);
    N = ISVALDFILE(A,M,C);

Input
 A Input argument, to be tested on datafile or dataset
 M Minimum number of objects per class in A
 C Minimum number of classes in A

Output
 N 1/0 if A is / isn't a valid datafile or dataset

Description

The function ISVALDFILE tests if A is a datafile or dataset that has  at least C classes. It is an extension of ISVALDSET and can be used it  when datasets as well as datafiles are allowed.  For datafiles(sets) with soft or targets labels it is tested whether A has at least M objects.

See also

isdataset, ismapping, isdataim, isfeatim, iscomdset, isvaldset,

PRTools contents

PRTools manual