 Usage:  d = lpdist(x, q, p)  
 
 Input:

  x                      n x m matrix 
                         
  q                      m x 1 matrix of non-negative weights of columns 
                         
  p                      scalar parameter (p>0) of the Lp-metric 
                         
                         
 Output:

  d                      n(n-1)/2 x 1 matrix of paired distances between the 
                         n row points (the sequence of distances 
                         is described in AGGLOM) 
                         
--------------------------------------------------------------
(C) MD*TECH Method and Data Technologies, 17.8.2000
