knn_old - SOM Toolbox Online documentation

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
SOM Toolbox Online documentation http://www.cis.hut.fi/projects/somtoolbox/ knn_old [Class,P]=knn_old(Data, Proto, proto_class, K) KNN_OLD A K-nearest neighbor classifier using Euclidean distance [Class,P]=knn_old(Data, Proto, proto_class, K) [sM_class,P]=knn_old(sM, sData, [], 3); [sD_class,P]=knn_old(sD, sM, class); [class,P]=knn_old(data, proto, class); [class,P]=knn_old(sData, sM, class,5); Input and output arguments ([]'s are optional): Data (matrix) size Nxd, vectors to be classified (=classifiees) (struct) map or data struct: map codebook vectors or data vectors are considered as classifiees. Proto (matrix) size Mxd, prototype vector matrix (=prototypes) (struct) map or data struct: map codebook vectors or data vectors are considered as prototypes. [proto_class] (vector) size Nx1, integers 1,2,. ..,k indicating the classes of corresponding protoptypes, default: see the explanation below. [K]
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/23/2010 for the course CS 245 taught by Professor Dunno during the Spring '10 term at Aarhus Universitet.

Page1 / 2

knn_old - SOM Toolbox Online documentation

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online