Changes in distools/genddat.m [28:10]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
distools/genddat.m
r28 r10 60 60 function [DTR,DTE,Itr,Ite] = genddat(D,m,k); 61 61 62 if nargin < 3, k = []; end63 64 % If input is a cell array of datasets, apply this procedure65 % 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 end76 return;77 end78 79 80 81 62 [n,nk,c] = getsize(D); 82 63 nlab = getnlab(D); 83 64 discheck(D,[],1); % allow for similarities 84 65 85 if ~isempty(k) 66 if nargin < 3, 67 k = []; 68 else 86 69 if length(k) == 1 87 70 k = k*ones(1,c);
Note: See TracChangeset
for help on using the changeset viewer.