Vespucci  1.0.0
Vespucci::Math::DistanceMetricWrapper Class Reference

#include <distancemetricwrapper.h>

Public Member Functions

 DistanceMetricWrapper (std::string metric_description)
 Vespucci::Math::DistanceMetricWrapper::DistanceMetricWrapper. More...
 
double Evaluate (arma::vec &first, arma::vec &second)
 Vespucci::Math::DistanceMetricWrapper::Evaluate. More...
 

Detailed Description

Definition at line 27 of file distancemetricwrapper.h.

Constructor & Destructor Documentation

Vespucci::Math::DistanceMetricWrapper::DistanceMetricWrapper ( std::string  metric_description)

Vespucci::Math::DistanceMetricWrapper::DistanceMetricWrapper.

Parameters
metric_descriptionWill throw invalid_argument for unsupported metric_description

Definition at line 26 of file distancemetricwrapper.cpp.

Member Function Documentation

double Vespucci::Math::DistanceMetricWrapper::Evaluate ( arma::vec &  first,
arma::vec &  second 
)

Vespucci::Math::DistanceMetricWrapper::Evaluate.

Parameters
first
second
Returns
Evaluate the distance between first and second Throws std::runtime_error for invalid type. This should be impossible because the constructor should have thrown an exception...

Definition at line 47 of file distancemetricwrapper.cpp.


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