gaussradialbasisfunction.m

来自「一个基于K均值聚类的RBF神经网络」· M 代码 · 共 19 行

M
19
字号
function output=GaussRadialBasisFunction(input,center,r)
%This function is designed to get the value of Gauss function
%input              the input of the node
%center             the center of the node
%r                  neighborhood radius
%
%
%edit by bruce, Oct 19, 2006
%
%
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[inputrow inputcol]=size(input);
[centerrow centercol]=size(center);
if (inputrow~=centerrow | inputcol~=centercol)
    error('the dimensions of the parameters are different!');
end % this end for inputrow~=centerrow | inputcol~=centercol
output=exp(-norm(input-center)^2/r^2);

⌨️ 快捷键说明

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