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 Sat 16-May-2009 00:04:49 by m2html © 2003