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

 Piotr's Image&Video Toolbox      Version 2.0
 Copyright 2008 Piotr Dollar.  [pdollar-at-caltech.edu]
 Please email me if you find bugs, or have suggestions or questions!
 Licensed under the Lesser GPL [see external/lgpl.txt]

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated by m2html © 2003