svc.m

来自「神经网络VC++代码 人工神经网络原理及仿真实例.」· M 代码 · 共 43 行

M
43
字号
function net = svc(arg, sv, w, bias)


%

if nargin == 0
   
   % this is the default constructor
   
   net.kernel = linear;
   net.sv     = [];
   net.w      = [];
   net.bias   = 0;
   net        = class(net, 'svc');
   
elseif nargin == 1

   if isa(arg, 'svc');
   
      % this is the copy constructor
   
      net = arg;

   end
   
elseif nargin > 6

   % there are no other constructors
   
   help svc

else
   
   net.kernel = arg;
   net.sv     = sv;
   net.w      = w;
   net.bias   = bias;
   net        = class(net, 'svc');
   
end


⌨️ 快捷键说明

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