MetricKnn API
Fast Similarity Search using the Metric Space Approach
mknn_result.h
Go to the documentation of this file.
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_RESULT_H_
10 #define MKNN_RESULT_H_
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 #include "../metricknn_c.h"
17 
33 int64_t mknn_result_getNumQueries(MknnResult *result);
52 
65  int64_t num_query);
71 void mknn_result_release(MknnResult *result);
72 
77  int64_t num_nns;
78  double *nn_distance;
79  int64_t *nn_position;
81 };
82 
83 #ifdef __cplusplus
84 }
85 #endif
86 
87 #endif
int64_t num_nns
number of nearest neighbors.
Definition: mknn_result.h:77
MknnResolver * mknn_result_getResolver(MknnResult *result)
Definition: result.c:54
int64_t mknn_result_getTotalDistanceEvaluations(MknnResult *result)
Definition: result.c:49
double mknn_result_getTotalSearchTime(MknnResult *result)
Definition: result.c:44
int64_t num_distance_evaluations
amount of distances evaluated for resolving this query.
Definition: mknn_result.h:80
Definition: dataset.c:11
int64_t mknn_result_getNumQueries(MknnResult *result)
Definition: result.c:39
Definition: result.c:11
The result of a single query.
Definition: mknn_result.h:76
MknnResultQuery * mknn_result_getResultQuery(MknnResult *result, int64_t num_query)
Returns the result for each query in the query dataset.
Definition: result.c:64
Definition: resolver.c:11
double * nn_distance
the distance of each nearest neighbor to the query object.
Definition: mknn_result.h:78
MknnDataset * mknn_result_getQueryDataset(MknnResult *result)
Definition: result.c:59
int64_t * nn_position
the position in the search dataset of each nearest neighbor.
Definition: mknn_result.h:79
void mknn_result_release(MknnResult *result)
Releases the result of a search (including the result for each query) that may have been returned by ...
Definition: result.c:103
Powered by Download MetricKnn