Changeset 28 for distools/genddat.m
- Timestamp:
- 03/31/12 18:04:35 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
distools/genddat.m
r10 r28 60 60 function [DTR,DTE,Itr,Ite] = genddat(D,m,k); 61 61 62 if nargin < 3, k = []; end 63 64 % If input is a cell array of datasets, apply this procedure 65 % to the individual datasets. 66 if (iscell(D)) 67 A = cell(size(D)); 68 B = cell(size(D)); 69 IA = cell(size(D)); 70 IB = cell(size(D)); 71 seed = randreset; 72 for j=1:length(D(:)) 73 randreset(seed); 74 [DTR{j},DTE{j},Itr{j},Ite{j}] = feval(mfilename,D{j},m,k); 75 end 76 return; 77 end 78 79 80 62 81 [n,nk,c] = getsize(D); 63 82 nlab = getnlab(D); 64 83 discheck(D,[],1); % allow for similarities 65 84 66 if nargin < 3, 67 k = []; 68 else 85 if ~isempty(k) 69 86 if length(k) == 1 70 87 k = k*ones(1,c);
Note: See TracChangeset
for help on using the changeset viewer.