7 #include "../base/weightedobject.h"
38 Point(std::vector<Point*>
const&);
Abstract base class for weighted objects.
double l2distance(Point const &) const
Point(std::vector< double > coords, double pointWeight=1.0)
Constructs a weighted point.
Point & operator+=(Point const &x)
Point & operator-=(Point const &x)
double squaredLpDistance(Point const &, double p) const
Point(Point const &p)
Copy constructor.
std::vector< double > coordinates
double squaredL2distance(Point const &) const
double lpdistance(Point const &, double p) const
Point(size_t dimension=0, double pointWeight=1.0)
Constructs a weighted point.
double kullbackleibler(Point const &) const
Point operator+(Point const &x) const
double squaredL1distance(Point const &) const
double & operator[](size_t index)
Point operator*(double scalar, Point const &vec)
Weighted point of arbitrary dimension.
double operator[](size_t index) const
virtual double getWeight() const
Point operator-(Point const &x) const
double l1distance(Point const &) const
std::ostream & operator<<(std::ostream &, Point const &)
virtual void setWeight(double w)