quantiles: add functions to get max k and min step

This commit is contained in:
Miroslav Lichvar
2024-11-18 15:54:17 +01:00
parent 65b5f111d2
commit 77962bb527
4 changed files with 22 additions and 2 deletions

View File

@@ -193,6 +193,22 @@ QNT_GetMinK(QNT_Instance inst)
/* ================================================== */
int
QNT_GetMaxK(QNT_Instance inst)
{
return inst->min_k + (inst->n_quants / inst->repeat) - 1;
}
/* ================================================== */
double
QNT_GetMinStep(QNT_Instance inst)
{
return inst->min_step;
}
/* ================================================== */
double
QNT_GetQuantile(QNT_Instance inst, int k)
{