 Usage:  yh = xgobisknn(x,y,g,h)  

 

 Input:



  x                      n x 1 matrix 

                         

  y                      n x 1 matrix 

                         

  g                      n x 1 matrix with integers starting at zero 

                         

  kp                     scalar number of neighbours 

                         

 Output:



  yh                     n x 1 matrix smoothed fit 

                         

--------------------------------------------------------------

(C) MD*TECH Method and Data Technologies, 21.9.2000

