PRTools contents |
TESTDATASIZE
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 |
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 |
PRTools contents |