DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


ResizeTrnData

Declaration: TRndForest.ResizeTrnData (NVars, NSamples: integer): integer;
The function ResizeTrnData resizes the training data fields (TrnDataX and TrnDataY). The parameter NVars defines the number of variables in the X block, the parameter NSamples specifies the number of samples of the training data.

The function returns the following error codes:

 0 ... everything is OK
-1 ... either NVars or NSamples is invalid (i.e. less than 1)

Hint: Never change the size of the X block training data (TrnDataX) directly without calling ResizeTrnData afterwards.