dignea  1.0.0
Diverse Instance Generator with Novelty Search and Evolutionary Algorithms
Distance< T > Class Template Referenceabstract

Abstract Distance Class to create an interface which can be use in different algorithms. More...

#include <Distance.h>

Inheritance diagram for Distance< T >:
Euclidean< T >

Public Member Functions

virtual T compute (const vector< T > &, const vector< T > &)=0
 Computes the distance between the vectors of type T and returns the value. This method must be implemented in the subclasses. More...
 

Detailed Description

template<typename T>
class Distance< T >

Abstract Distance Class to create an interface which can be use in different algorithms.

Template Parameters
T

Member Function Documentation

◆ compute()

template<typename T >
virtual T Distance< T >::compute ( const vector< T > &  ,
const vector< T > &   
)
pure virtual

Computes the distance between the vectors of type T and returns the value. This method must be implemented in the subclasses.

Returns
T

Implemented in Euclidean< T >.


The documentation for this class was generated from the following file: