PRTools contents

PRTools manual

knnr

KNNR

Nearest neighbor regression

     Y = KNNR(X,K)

Input
 X Regression dataset
 K number of neighbors (default K=3)

Output
 Y k-nearest neighbor regression

Description

Define a k-Nearest neighbor regression on dataset X.

See also

linearr, testr, plotr,

PRTools contents

PRTools manual