MetricKnn API
Fast Similarity Search using the Metric Space Approach
histogram.h
1 /*
2  * Copyright (C) 2012-2015, Juan Manuel Barrios <juanmanuel@barrios.cl>
3  * All rights reserved.
4  *
5  * This file is part of MetricKnn.
6  * MetricKnn is made available under the terms of the BSD 2-Clause License.
7  */
8 
9 #ifndef MKNN_HISTOGRAM_H
10 #define MKNN_HISTOGRAM_H
11 
12 #include "../metricknn_impl.h"
13 
14 MknnHistogram *mknn_histogram_new(int64_t num_values, double *values,
15  int64_t max_bins);
16 MknnHistogram *mknn_histogram_restore(const char *filenameHist, bool fail);
17 
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);
21 
22 double* mknn_histogram_getBins(MknnHistogram *ch);
23 int64_t mknn_histogram_getNumBins(MknnHistogram *ch);
24 
25 void mknn_histogram_save(MknnHistogram *ch, const char *filename);
26 
27 void mknn_histogram_release(MknnHistogram *ch);
28 
29 #endif
Definition: histogram.c:11
Powered by Download MetricKnn