?? knnclass.m~
字號:
function [class] = knnclass(tst,X,I,K)% [class] = knnclass(tst,X,I,K)%% KNNCLASS is an implementation of K-Nearest Neighbours % classifier. The Euclidean distance is used.%% Input:% tst [DxNtst] Ntst testing patterns.% X [D,Ntrn] Ntrn training points of dimension D.% I [1,Ntrn] Ntrn labels of the training points.% K [1x1] number of nearest neighbours.%% Output:% class [1xNtst] estimated class labels for each testing pattern.%% Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz% Written Vojtech Franc (diploma thesis)% Modifications% 26-feb-2001 V.Franc
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -