 Usage:  {hopt, ch} = denbwcrit(crit, x {,h {,K} {,d} })  
 
 Input:

  crit                   string, criterion for bandwidth selection: 
                         "lscv", "bcv", "scv", "jmp", "pm", "sj". 
                         
  x                      n x 1 vector, the data. 
                         
  h                      m x 1 vector, vector of bandwidths. 
                         
  K                      string, kernel function on [-1,1] or Gaussian 
                         kernel "gau". If not given, "gau" is used. 
                         
  d                      scalar, discretization binwidth. d must be smaller 
                         than h. If not given, the minimum of min(h)/3 and 
                         (max(x)-min(x))/200 is used. 
                         
 Output:

  hopt                   scalar, optimal bandwidth. (If negative in 
                         case of "pm" or "sj", denbwcrit needs to be run 
                         again with different h range.) 
                         
  ch                     m x 2 vector, the criterion function for h values. 
                         
--------------------------------------------------------------
(C) MD*TECH Method and Data Technologies, 17.8.2000
