9 #ifndef MKNN_HISTOGRAM_H
10 #define MKNN_HISTOGRAM_H
12 #include "../metricknn_impl.h"
14 MknnHistogram *mknn_histogram_new(int64_t num_values,
double *values,
16 MknnHistogram *mknn_histogram_restore(
const char *filenameHist,
bool fail);
18 void mknn_histogram_addValue(
MknnHistogram *ch,
double value);
19 double mknn_histogram_getQuantile(
MknnHistogram *ch,
double value);
20 double mknn_histogram_getValueQuantile(
MknnHistogram *ch,
double quantile);
25 void mknn_histogram_save(
MknnHistogram *ch,
const char *filename);
Definition: histogram.c:11