MetricKnn API
Fast Similarity Search using the Metric Space Approach
Public Member Functions | List of all members
mknn::DistanceCustomFactory Class Referenceabstract

Abstract class that must be inherited to define a custom distance. More...

#include <mknn_distance.hpp>

Public Member Functions

virtual DistanceCustomInstancenewInstance (Domain *domain_left, Domain *domain_right)=0
 The function of a custom distance that creates a new state. More...
 

Detailed Description

Abstract class that must be inherited to define a custom distance.

Member Function Documentation

virtual DistanceCustomInstance* mknn::DistanceCustomFactory::newInstance ( Domain domain_left,
Domain domain_right 
)
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.

Parameters
domain_leftdomain of the left object of the distance.
domain_rightdomain of the right object of the distance.
Returns
a new instance of the distance for the given domains

The documentation for this class was generated from the following file:
Powered by Download MetricKnn