KSTWO

kstwo
Kolmogorov-Smirnov statistic from two samples

            [d,p] = KSTWO(x,y)  
          Input   x,y samples (column vectors)

          Output  d   Kolmogorov-Smirnov statistic d
                  p   significance level p for the null hypothesis 
                      that the data sets x and y are drawn from the 
                      same distribution.