MetricKnn API
Fast Similarity Search using the Metric Space Approach
heap.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_HEAP_H
10 #define MKNN_HEAP_H
11 
12 #include "../metricknn_impl.h"
13 
14 MknnHeap *mknn_heap_newMaxHeap(int64_t heap_size);
15 MknnHeap *mknn_heap_newMinHeap(int64_t heap_size);
16 void mknn_heap_storeBestDistances(double distance, int64_t object_id,
17  MknnHeap *heap, double *current_threshold_ptr);
18 int64_t mknn_heap_getSize(MknnHeap *heap);
19 void mknn_heap_sortElements(MknnHeap *heap);
20 double mknn_heap_getDistanceAtPosition(MknnHeap *heap, int64_t position);
21 int64_t mknn_heap_getObjectIdAtPosition(MknnHeap *heap, int64_t position);
22 void mknn_heap_reset(MknnHeap *heap);
23 void mknn_heap_release(MknnHeap *heap);
24 
25 MknnHeap **mknn_heap_newMultiMaxHeap(int64_t heap_size, int64_t num_heaps);
26 MknnHeap **mknn_heap_newMultiMinHeap(int64_t heap_size, int64_t num_heaps);
27 void mknn_heap_releaseMulti(MknnHeap **heaps, int64_t num_heaps);
28 
29 #endif
Definition: heap.c:106
Powered by Download MetricKnn