 Usage:  m = knn (x, k)  

 

 Input:



  x                      n vector of the obervations 

                         

  k                      scalar range of the running mean 

                         

 Output:



  m                      n vector containing the smoothed values 

                         

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

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

