📄 gaussradialbasisfunction.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -