rbf.m

来自「是一个用MATLAB编的一个系统」· M 代码 · 共 38 行

M
38
字号
function ker = rbf(arg)



if nargin == 0
   
   % this is the default constructor
   
   ker.gamma = 1;
   ker       = class(ker, 'rbf');
   
elseif isa(arg, 'rbf');
   
   % this is the copy constructor
   
   net = arg;
   
elseif nargin == 1
   
   if prod(size(arg)) ~= 1

      error('gamma must be a scalar');

   end

   ker.gamma = arg;
   ker       = class(ker, 'rbf');
  
else

   % there are no other constructors

   help rbf

end


⌨️ 快捷键说明

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