X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=folded-ctf.git;a=blobdiff_plain;f=tools.h;h=902879a8e201525dcfc66c4ccbcec161a595fd4c;hp=99b1ade1a3d1499c5e32506fac5d548b0b182182;hb=a44d56305517dddd36027c2a84693f2785fd019a;hpb=346c6fdc3c36ca10142234cce291031064fa2b48 diff --git a/tools.h b/tools.h index 99b1ade..902879a 100644 --- a/tools.h +++ b/tools.h @@ -24,6 +24,9 @@ #include #include "misc.h" +// This function is not trivial because it has to handle numerical +// pitfalls due to the very large number of samples. + scalar_t robust_sampling(int nb, scalar_t *weights, int nb_to_sample, int *sampled); void print_roc_small_pos(ostream *out,