BICO 1.1

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Pages
l2metric.cpp
Go to the documentation of this file.
1 #include "../point/l2metric.h"
2 #include "../point/point.h"
3
4 using namespace CluE;
5
6 L2Metric* L2Metric::clone() const
7 {
8 return new L2Metric(*this);
9 }
10
11 double L2Metric::dissimilarity(Point const& p1, Point const& p2) const
12 {
13 return p1.l2distance(p2);
14 }
CluE::L2Metric
L2 metric for Point.
Definition: l2metric.h:15
CluE::Point::l2distance
double l2distance(Point const &) const
Definition: point.cpp:119
CluE::L2Metric::dissimilarity
virtual double dissimilarity(Point const &, Point const &) const
Computes the l2-distance between the two given Point instances.
Definition: l2metric.cpp:11
CluE::L2Metric::clone
virtual L2Metric * clone() const
Definition: l2metric.cpp:6
CluE::Point
Weighted point of arbitrary dimension.
Definition: point.h:17