MetricKnn API
Fast Similarity Search using the Metric Space Approach
mknn_predefined_index.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_PREDEFINED_INDEX_H_
10 #define MKNN_PREDEFINED_INDEX_H_
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 #include "../metricknn_c.h"
17 
36 
42 void mknn_predefIndex_helpPrintIndex(const char *id_index);
49 bool mknn_predefIndex_testIndexId(const char *id_index);
68 
79  int64_t knn, double range, int64_t max_threads);
80 
90  int64_t knn, int64_t max_threads);
91 
111 
121  int64_t knn, double range, int64_t max_threads);
132  int64_t knn, double range, int64_t max_threads,
133  double approximation_percentage);
134 
154 
164  int64_t knn, double range, int64_t max_threads);
165 
183 
193 
204  int64_t iterations);
205 
217  int64_t key_size, int64_t multi_probe_level);
230  double target_precision, double build_weight, double memory_weight,
231  double sample_fraction);
232 
241  int64_t knn, int64_t max_threads);
242 
253  int64_t knn, int64_t max_threads, int64_t num_checks);
254 
259 #ifdef __cplusplus
260 }
261 #endif
262 
263 #endif
MknnResolverParams * mknn_predefIndex_LinearScan_resolverExactFarthestNeighbors(int64_t knn, int64_t max_threads)
Creates a new resolver for exact search of the K farthest neighbors using the linear scan index...
Definition: predefined_index.c:28
MknnResolverParams * mknn_predefIndex_Laesa_resolverExactNearestNeighbors(int64_t knn, double range, int64_t max_threads)
Creates a new resolver for exact search using the LAESA index.
Definition: predefined_index.c:45
MknnIndexParams * mknn_predefIndex_LinearScan_indexParams()
Resolves searches using the linear scan algorithm.
Definition: predefined_index.c:11
MknnIndexParams * mknn_predefIndex_FlannLSH_indexParams(int64_t table_number, int64_t key_size, int64_t multi_probe_level)
Resolves searches using FLANN's implementation of Local Sensitive Hashing.
Definition: predefined_index.c:111
MknnIndexParams * mknn_predefIndex_FlannKmeansTree_indexParams(int64_t branching, int64_t iterations)
Resolves searches using FLANN's implementation of k-means tree.
Definition: predefined_index.c:103
MknnIndexParams * mknn_predefIndex_SnakeTable_indexParams(int64_t num_pivots)
Resolves searches using a Snake Table.
Definition: predefined_index.c:72
bool mknn_predefIndex_testIndexId(const char *id_index)
Tests whether the given string references a valid pre-defined index.
Definition: index.c:70
MknnIndexParams * mknn_predefIndex_FlannLinearScan_indexParams()
Resolves searches using the FLANN's implementation of linear scan algorithm.
Definition: predefined_index.c:91
MknnIndexParams * mknn_predefIndex_FlannAutoIndex_indexParams(double target_precision, double build_weight, double memory_weight, double sample_fraction)
Resolves searches using FLANN's automatic selection of the best algorithm.
Definition: predefined_index.c:120
MknnResolverParams * mknn_predefIndex_SnakeTable_resolverExactNearestNeighbors(int64_t knn, double range, int64_t max_threads)
Creates a new resolver for exact search using the SnakeTable index.
Definition: predefined_index.c:79
MknnResolverParams * mknn_predefIndex_Flann_resolverExactNearestNeighbors(int64_t knn, int64_t max_threads)
Creates a new resolver for exact searches using FLANN's indexes.
Definition: predefined_index.c:132
Definition: parameters.c:23
void mknn_predefIndex_helpListIndexes()
Lists to standard output all pre-defined indexes.
Definition: index.c:93
MknnResolverParams * mknn_predefIndex_Laesa_resolverApproximateNearestNeighbors(int64_t knn, double range, int64_t max_threads, double approximation_percentage)
Definition: predefined_index.c:56
void mknn_predefIndex_helpPrintIndex(const char *id_index)
Prints to standard output the help for a index.
Definition: index.c:88
MknnResolverParams * mknn_predefIndex_Flann_resolverApproximateNearestNeighbors(int64_t knn, int64_t max_threads, int64_t num_checks)
Creates a new resolver for approximate searches using FLANN's indexes.
Definition: predefined_index.c:142
Definition: parameters.c:28
MknnIndexParams * mknn_predefIndex_Laesa_indexParams(int64_t num_pivots)
Resolves searches using the LAESA algorithm.
Definition: predefined_index.c:39
MknnIndexParams * mknn_predefIndex_FlannKdTree_indexParams(int64_t num_trees)
Resolves searches using FLANN's implementation of kd-tree.
Definition: predefined_index.c:97
MknnResolverParams * mknn_predefIndex_LinearScan_resolverExactNearestNeighbors(int64_t knn, double range, int64_t max_threads)
Creates a new resolver for exact search of the K nearest neighbors using the linear scan index...
Definition: predefined_index.c:16
Powered by Download MetricKnn