📄 gaussiankernel.m
字号:
%=====================================================================
%
% GaussianKernel % --------------%% Parameters: % x,y - 2 data points. % q - The width of the gaussian kernel.% % Return Value:% k - The inner product of the pair of data points images.
%% Computes the Gaussian Kernel:
% The inner product of the images of a given data points' pair.
% % k = K(x,y) = exp( -q * ||x - y||^2 ) %%=====================================================================
function k = GaussianKernel(x,y,q)k = exp(-q * (x-y)' * (x-y));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -