BICO 1.1

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

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Pages
l2metric.h
Go to the documentation of this file.
1 #ifndef L2METRIC_H
2 #define L2METRIC_H
3
4 #include "../base/dissimilaritymeasure.h"
5 #include "../point/point.h"
6
7 namespace CluE
8 {
9
15 class L2Metric : public DissimilarityMeasure<Point>
16 {
17 public:
18 virtual L2Metric* clone() const;
19
23 virtual double dissimilarity(Point const&, Point const&) const;
24 };
25
26 }
27
28 #endif
CluE::L2Metric
L2 metric for Point.
Definition: l2metric.h:15
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
CluE::DissimilarityMeasure
Abstract base class for dissimilarity measurement.
Definition: dissimilaritymeasure.h:12