代码搜索:Nearest
找到约 1,596 项符合「Nearest」的源代码
代码结果 1,596
www.eeworm.com/read/469416/6976425
m knnfwd.m
function [y, l] = knnfwd(net, x)
%KNNFWD Forward propagation through a K-nearest-neighbour classifier.
%
% Description
% [Y, L] = KNNFWD(NET, X) takes a matrix X of input vectors (one vector
% pe
www.eeworm.com/read/466709/7031621
m window.m
function [dl,off,lnx,lne,aopt]=window(y,maxd,approx);
%function [dl,off,lnx,lne,aopt]=window(y,maxd,approx);
%
%compute DL(d) for 1:maxd to determine best embedding window
%approx is optional and spe
www.eeworm.com/read/383268/7119641
m odd.m
function y=odd(x);
%ODD Round towards nearest odd value.
% Y=ODD(X) rounds each element of X towards the nearest odd
% integer value. If an element of X is even, ODD adds +1 to
% this value. X can b
www.eeworm.com/read/274556/7127102
m e0613.m
x=0:10;y=sin(x);xi=0:.25:10;
% 将插值方法定义为单元数组
strmod={'nearest','linear','spline','cubic'}
% 将X轴标识定义为单元数组
strlb={'(a) method=nearest', '(b) method=linear','(c) method=spline', '(d) m
www.eeworm.com/read/299984/7139992
m knnc.m
%KNNC K-Nearest Neighbor Classifier
%
% [W,K,E] = KNNC(A,K)
% [W,K,E] = KNNC(A)
%
% INPUT
% A Dataset
% K Number of the nearest neighbors (optional; default: K is
% optimized with resp
www.eeworm.com/read/299984/7140010
m nmc.m
%NMC Nearest Mean Classifier
%
% W = NMC(A)
% W = A*NMC
%
% INPUT
% A Dataset
%
% OUTPUT
% W Nearest Mean Classifier
%
% DESCRIPTION
% Computation of the nearest mean classifier betw
www.eeworm.com/read/299984/7140690
m resizem.m
%RESIZEM Mapping for resizing object images in datasets and datafiles
%(outdated, rplaced by im_resize)
%
% B = RESIZEM(A,SIZE,METHOD)
% B = A*RESIZEM([],SIZE,METHOD)
%
% INPUT
% A Dat
www.eeworm.com/read/464287/7166744
m b44.m
I=imread('eight.tif');
I1=imrotate(I,30,'bilinear','crop');
I2=imrotate(I,30,'nearest neighber');
imshow(I);
figure,imshow(I1);
figure,imshow(I2);
www.eeworm.com/read/464287/7166773
m b43.m
I=imread('rice.tif');
imshow(I);
I1=imresize(I,1.5,'nearest neighber'); %最近邻插值
figure,imshow(I1);
I2=imresize(I,1.5,'bilibear'); %双线形插值
figure,imshow(I2);
I3=imresize(I,1.5,'bicubic'); %双三次插值
www.eeworm.com/read/462042/7211858
txt 代码27-12.txt
method = 'Bilinear';
switch lower(method)
case {'linear','bilinear'} % 判断
disp('Method is linear') % 执行程序
case 'cubic' % 判断
disp('Method is c