MetricKnn API
Fast Similarity Search using the Metric Space Approach
|
Abstract class that must be inherited to define a custom distance. More...
#include <mknn_distance.hpp>
Public Member Functions | |
virtual DistanceCustomInstance * | newInstance (Domain *domain_left, Domain *domain_right)=0 |
The function of a custom distance that creates a new state. More... | |
Abstract class that must be inherited to define a custom distance.
|
pure virtual |
The function of a custom distance that creates a new state.
This method is internally invoked by Distance::newDistanceEval to create one state for each thread resolving the search.
domain_left | domain of the left object of the distance. |
domain_right | domain of the right object of the distance. |