CROSSVAL

Partitions data for cross-validation.



 Synopsis:
  [itrn,itst] = crossval(num_data,num_folds)

 Description:
  This function randomly partitions data into the training
  and testing parts. The number of partitionings is determined
  by the num_folds. If num_folds==1 then makes only one random
  partitioning of data into training and testing in ratio 50:50.
 
 Input:
  num_data [1x1] number of data.
  num_folds [1x1] number of folders.

 Output:
  itrn{i} Indices of training data of i-th folder.
  itst{i} Indices of testing data i-th folder.


Source: crossval.m

About: Statistical Pattern Recognition Toolbox
(C) 1999-2003, Written by Vojtech Franc and Vaclav Hlavac
Czech Technical University Prague
Faculty of Electrical Engineering
Center for Machine Perception

Modifications:
19-aug-2004, VF, comments repared
17-may-2004, VF
21-Jan-2003, VF
14-Jan-2003, VF
7-jan-2003, VF, created