quantiles: add function to get minimum k

This commit is contained in:
Miroslav Lichvar
2022-07-19 14:33:40 +02:00
parent bb2d68ddf9
commit df80274644
3 changed files with 11 additions and 0 deletions

View File

@@ -42,6 +42,8 @@ test_unit(void)
inst = QNT_CreateInstance(min_k, max_k, q, r, 1e-9);
TEST_CHECK(min_k == QNT_GetMinK(inst));
for (j = 0; j < 3000; j++) {
x = TST_GetRandomDouble(0.0, 2e-6);
QNT_Accumulate(inst, x);