From 483301c5c5a0b2cf2b0b54ce7de194c3f4c846bd Mon Sep 17 00:00:00 2001 From: Isabell Pflug Date: Fri, 17 Apr 2026 16:24:29 +0200 Subject: [PATCH] :memo: Added an example to the sample_indices function. --- lib/kcnf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/kcnf.cpp b/lib/kcnf.cpp index 259e059..9ca3b45 100644 --- a/lib/kcnf.cpp +++ b/lib/kcnf.cpp @@ -26,7 +26,8 @@ long binom(long n, long k) { } // get the (n choose k) possible variable choices at index idx -// example: +// example: unrank_combination(5,3,5) -> (1,4,5) +// the full combination list would look like: (1,2,3), (1,2,4), (1,2,5), (1,3,4), (1,3,5), (1,4,5) <- this is the combination on index 5 std::vector unrank_combination(long n, long k, long long idx) { std::vector comb; comb.reserve(k);