clfKnn

PURPOSE ^

Create a k nearest neighbor classifier.

SYNOPSIS ^

function clf = clfKnn( p, k, metric )

DESCRIPTION ^

 Create a k nearest neighbor classifier.

 USAGE
  clf = clfKnn( p, k, metric )

 INPUTS
  p       - data dimension
  k       - number of nearest neighbors to look at
  metric  - [] distance function, squared euclidean by default

 OUTPUTS
  clf     - model ready to be trained

 EXAMPLE

 See also NFOLDXVAL, CLFKNNTRAIN, CLFKNNFWD, CLFKNNDIST

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 03-Oct-2007 13:09:09 by m2html © 2003