2020#include " kolmogorov_smirnov.hpp"
2121#include " kll_sketch.hpp"
2222#include " quantiles_sketch.hpp"
23+ #include " py_object_lt.hpp"
2324
2425#include < nanobind/nanobind.h>
2526
@@ -29,38 +30,50 @@ void init_kolmogorov_smirnov(nb::module_ &m) {
2930 using namespace datasketches ;
3031
3132 m.def (" ks_test" , &kolmogorov_smirnov::test<kll_sketch<int >>, nb::arg (" sk_1" ), nb::arg (" sk_2" ), nb::arg (" p" ),
32- " Performs the Kolmogorov-Smirnov Test between kll_ints_sketches .\n "
33+ " Performs the Kolmogorov-Smirnov Test for :code:`kll_ints_sketch` pairs .\n "
3334 " Note: if the given sketches have insufficient data or if the sketch sizes are too small, "
3435 " this will return false.\n "
3536 " Returns True if we can reject the null hypothesis (that the sketches reflect the same underlying "
3637 " distribution) using the provided p-value, otherwise False." );
3738 m.def (" ks_test" , &kolmogorov_smirnov::test<kll_sketch<float >>, nb::arg (" sk_1" ), nb::arg (" sk_2" ), nb::arg (" p" ),
38- " Performs the Kolmogorov-Smirnov Test between kll_floats_sketches .\n "
39+ " Performs the Kolmogorov-Smirnov Test for :code:`kll_floats_sketch` pairs .\n "
3940 " Note: if the given sketches have insufficient data or if the sketch sizes are too small, "
4041 " this will return false.\n "
4142 " Returns True if we can reject the null hypothesis (that the sketches reflect the same underlying "
4243 " distribution) using the provided p-value, otherwise False." );
4344 m.def (" ks_test" , &kolmogorov_smirnov::test<kll_sketch<double >>, nb::arg (" sk_1" ), nb::arg (" sk_2" ), nb::arg (" p" ),
44- " Performs the Kolmogorov-Smirnov Test between kll_doubles_sketches.\n "
45+ " Performs the Kolmogorov-Smirnov Test for :code:`kll_doubles_sketch` pairs.\n "
46+ " Note: if the given sketches have insufficient data or if the sketch sizes are too small, "
47+ " this will return false.\n "
48+ " Returns True if we can reject the null hypothesis (that the sketches reflect the same underlying "
49+ " distribution) using the provided p-value, otherwise False." );
50+ m.def (" ks_test" , &kolmogorov_smirnov::test<kll_sketch<nb::object, py_object_lt>>, nb::arg (" sk_1" ), nb::arg (" sk_2" ), nb::arg (" p" ),
51+ " Performs the Kolmogorov-Smirnov Test for :code:`kll_items_sketch` pairs.\n "
4552 " Note: if the given sketches have insufficient data or if the sketch sizes are too small, "
4653 " this will return false.\n "
4754 " Returns True if we can reject the null hypothesis (that the sketches reflect the same underlying "
4855 " distribution) using the provided p-value, otherwise False." );
4956
5057 m.def (" ks_test" , &kolmogorov_smirnov::test<quantiles_sketch<int >>, nb::arg (" sk_1" ), nb::arg (" sk_2" ), nb::arg (" p" ),
51- " Performs the Kolmogorov-Smirnov Test between quantiles_ints_sketches .\n "
58+ " Performs the Kolmogorov-Smirnov Test for :code:`quantiles_ints_sketch` pairs .\n "
5259 " Note: if the given sketches have insufficient data or if the sketch sizes are too small, "
5360 " this will return false.\n "
5461 " Returns True if we can reject the null hypothesis (that the sketches reflect the same underlying "
5562 " distribution) using the provided p-value, otherwise False." );
5663 m.def (" ks_test" , &kolmogorov_smirnov::test<quantiles_sketch<float >>, nb::arg (" sk_1" ), nb::arg (" sk_2" ), nb::arg (" p" ),
57- " Performs the Kolmogorov-Smirnov Test between quantiles_floats_sketches .\n "
64+ " Performs the Kolmogorov-Smirnov Test for :code:`quantiles_floats_sketch` pairs .\n "
5865 " Note: if the given sketches have insufficient data or if the sketch sizes are too small, "
5966 " this will return false.\n "
6067 " :Returns True if we can reject the null hypothesis (that the sketches reflect the same underlying "
6168 " distribution) using the provided p-value, otherwise False." );
6269 m.def (" ks_test" , &kolmogorov_smirnov::test<quantiles_sketch<double >>, nb::arg (" sk_1" ), nb::arg (" sk_2" ), nb::arg (" p" ),
63- " Performs the Kolmogorov-Smirnov Test between quantiles_doubles_sketches.\n "
70+ " Performs the Kolmogorov-Smirnov Test for :code:`quantiles_doubles_sketch` pairs.\n "
71+ " Note: if the given sketches have insufficient data or if the sketch sizes are too small, "
72+ " this will return false.\n "
73+ " Returns True if we can reject the null hypothesis (that the sketches reflect the same underlying "
74+ " distribution) using the provided p-value, otherwise False." );
75+ m.def (" ks_test" , &kolmogorov_smirnov::test<quantiles_sketch<nb::object, py_object_lt>>, nb::arg (" sk_1" ), nb::arg (" sk_2" ), nb::arg (" p" ),
76+ " Performs the Kolmogorov-Smirnov Test for :code:`quantiles_items_sketch` pairs.\n "
6477 " Note: if the given sketches have insufficient data or if the sketch sizes are too small, "
6578 " this will return false.\n "
6679 " Returns True if we can reject the null hypothesis (that the sketches reflect the same underlying "
0 commit comments