Alexandria
2.16
Please provide a description of the project.
|
Go to the documentation of this file.
24 #ifndef SOM_DISTANCE_H
25 #define SOM_DISTANCE_H
34 template <
typename std::
size_t ND>
48 <<
"for this type of distance";
53 template <
typename std::
size_t ND>
58 virtual ~L2() =
default;
63 result += (left[i] - right[i]) * (left[i] - right[i]);
73 double up = (left[i] - right[i]) * (left[i] - right[i]);
74 double down = uncertainties[i] * uncertainties[i];
double distance(const std::array< double, ND > &left, const std::array< double, ND > &right) const override
virtual double distance(const std::array< double, ND > &, const std::array< double, ND > &, const std::array< double, ND > &) const
virtual ~Interface()=default
double distance(const std::array< double, ND > &left, const std::array< double, ND > &right, const std::array< double, ND > &uncertainties) const override
virtual double distance(const std::array< double, ND > &left, const std::array< double, ND > &right) const =0