⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setdat.m

📁 这个为模式识别工具箱
💻 M
字号:
%SETDAT Reset data and feature labels of dataset%%   A = SETDAT(A,DATA,W)%% INPUT%    A      Dataset%    DATA   Dataset or double  %    W      Mapping  (optional)%% OUTPUT%    A      Dataset %% DESCRIPTION% The data in the dataset A is replaced by DATA (dataset or double). The% number of objects in A and DATA should be equal. Optionally, A is given% the feature labels and the output size as defined by the the mapping W.% This call is identical to:%    A = SETDATA(A,DATA);%    A = SET(A,'featlab',GETLABELS(W),'featsize',GETSIZE_OUT(W));%% SEE ALSO% DATASET, SETDATA% Copyright: R.P.W. Duin, duin@ph.tn.tudelft.nl% Faculty of Applied Sciences, Delft University of Technology% P.O. Box 5046, 2600 GA Delft, The Netherlands% $Id: setdat.m,v 1.7 2004/03/19 09:19:43 duin Exp $function a = setdat(a,b,w)	prtrace(mfilename);	if ~isdataset(a)		a = dataset(a);	end			a = setdata(a,b);	if (nargin > 2)		if (~isa(w,'mapping'))			error('Third parameter should be mapping')		end		% Special case: 2 classes, p(class2) = 1-p(class1).		if (size(a,2) == 1) & (size(w,2) == 2)			a = [a 1-a];		end		% Add attributes of W to A.		a = set(a,'featlab',getlabels(w),'featsize',getsize_out(w));	end			return;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -