BICO 1.1

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

- File List
- File Members

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