clf_knn

PURPOSE ^

Create a k nearest neighbor classifier.

SYNOPSIS ^

function clf = clf_knn( p, k, dist_fn )

DESCRIPTION ^

 Create a k nearest neighbor classifier.
 
 INPUTS
   p       - data dimension
   k       - number of nearest neighbors to look at 
   dist_fn - [optional] distance function, squared euclidean by default

 OUTPUTS
   clf     - model ready to be trained

 DATESTAMP
   11-Oct-2005  2:45pm

 See also NFOLDXVAL, CLF_KNN_TRAIN, CLF_KNN_FWD

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 03-May-2006 23:48:50 by m2html © 2003