Home > freetb4matlab > nnet > dividerand.m

dividerand

PURPOSE ^

% Divide the vectors in training, validation and test group according to

SYNOPSIS ^

function [trainVectors,validationVectors,testVectors,indexOfTrain,indexOfValidation,indexOfTest] = dividerand(allCases,trainRatio,valRatio,testRatio)

DESCRIPTION ^

% -*- 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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003