PRTools Contents

PRTools User Guide

testdatasize

TESTDATASIZE

of datafiles and convert to dataset

    B = TESTDATASIZE(A,STRING)
   I = TESTDATASIZE(A,STRING,FALSE)
   I = TESTDATASIZE(N)

Input
 A datafile or dataset
 STRING 'data' (default) or 'features' or 'objects'
 N Given data size to be tested

Output
 B Converted dataset
 I TRUE: conversion possible
 FALSE: conversion not possible

Description

Depending on the value of PRMEMORY and the size of the datafile A, it is  converted to a dataset, otherwise an error is generated.  In case the third parameter is FALSE or the first is a scalar just a test  is executed. In case of no output arguments an error is generated if  conversion in impossible.

The parameter STRING controls the type of comparison

'data' PROD(SIZE(A)) < PRMEMORY
'objects' SIZE(A,1).^2 < PRMEMORY
'features' SIZE(A,2).^2 < PRMEMORY

See also

datasets, datafiles, prmemory,

PRTools Contents

PRTools User Guide

This file has been automatically generated. If badly readable, use the help-command in Matlab.