 Usage:  d = discrim(x1, x2, x)  

 

 Input:



  x1                     n1 x p matrix (sample 1) 

                         

  x2                     n2 x p matrix (sample 2) 

                         

  x                      p x 1 vector (the obs to be classified) 

                         

 Output:



  d                      1 x 2 vector (the distance to the two samples) 

                         Note 

                         It is assumed that both samples have identical cov structure 

                         

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

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

