CluE  1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
squaredlpmetric.h
Go to the documentation of this file.
1 #ifndef SQUAREDLPMETRIC_H
2 #define SQUAREDLPMETRIC_H
3 
4 #include "../base/dissimilaritymeasure.h"
5 #include "../point/point.h"
6 
7 namespace CluE
8 {
9 
17 {
18 public:
19  SquaredLPMetric(double p);
20 
21  virtual SquaredLPMetric* clone() const;
22 
26  virtual double dissimilarity(Point const&, Point const&) const;
27 
31  void setP(double p);
32 
33 private:
34  double p;
35 };
36 
37 }
38 
39 #endif
Squared Lp metric for Point.
virtual SquaredLPMetric * clone() const
void setP(double p)
Sets p ("Squared Lp distance").
Weighted point of arbitrary dimension.
Definition: point.h:17
virtual double dissimilarity(Point const &, Point const &) const
Computes the squared Lp-distance between the two given Point instances.
Abstract base class for dissimilarity measurement.