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

📄 rnval.m

📁 SVM algorithm in matlab.
💻 M
字号:
function y=rnval(xapp,xtest,kernel,kerneloption,c,d, T);

% USAGE
%    y=rnval(xapp,xtest,kernel,kerneloption,c,d,T);
%
%    y= K*c+ T*d   
%    calculates the output y of a Regularization networks given
%    a learning dataset xapp, points xtest  and kernel
%
% Input
%   xapp       Input Learning dataset      
%   xtest      Iput  Test     dataset
%   kernel     The Kernel
%
%
%   kerneloption : parameters of kernel
%   
%   c,d         coefficients of the RN obtained from rncalc fucntion
%   T           span matrix  Tij= phi_j(x_i) (defaults = 1) 
%    
% Output
%
%  y    y=K*c+T*d


%  11/03/2002 Alain Rakotomamonjy
 
nt=size(xtest,1);
if nargin <7
    T=ones(nt,1);
else
    if isempty(T)
            T=zeros(nt,1);
        end;
    if size(T,1)~=nt
        error('Span matrix T and xtest must have the same number of rows...');
    end;
    
end;
if nargin <6
    error('Not enough input parameters...');
end;
n=size(xapp,1);
K  =  zeros(n,n);		
K=svmkernel(xtest,kernel,kerneloption,xapp);
y=K*c+T*d;

⌨️ 快捷键说明

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