% -*- texinfo -*- % @deftypefn {Function File} [@var{trainVectors},@var{validationVectors},@var{testVectors},@var{indexOfTrain},@var{indexOfValidation},@var{indexOfTest}] = dividerand (@var{allCases},@var{trainRatio},@var{valRatio},@var{testRatio}) % Divide the vectors in training, validation and test group according to % the informed ratios % % % @example % % [trainVectors,validationVectors,testVectors,indexOfTrain,indexOfValidatio % n,indexOfTest] = dividerand(allCases,trainRatio,valRatio,testRatio) % % The ratios are normalized. This way: % % dividerand(xx,1,2,3) == dividerand(xx,10,20,30) % % @end example % % @end deftypefn