> h [1] 0.87606 1.03951 0.80825 0.82742 0.80370 0.85687 0.80477 0.75289 0.76000 [10] 0.79883 0.78912 0.81760 0.82946 0.92707 0.87500 0.88720 0.79915 0.78118 > m [1] 0.94194 0.91429 0.94171 0.92429 0.87034 0.93856 0.98072 0.93857 0.88919 [10] 0.98646 1.05855 1.02868 1.05585 0.90256 > ks.test(h,m) Two-sample Kolmogorov-Smirnov test data: h and m D = 0.8175, p-value = 1.014e-05 alternative hypothesis: two.sided