BICO
1.0
|
Weighted point of arbitrary dimension. More...
#include <point.h>
Public Member Functions | |
Point (size_t dimension=0, double pointWeight=1.0) | |
Constructs a weighted point. More... | |
Point (std::vector< double > coords, double pointWeight=1.0) | |
Constructs a weighted point. More... | |
Point (std::vector< Point * > const &) | |
Constructs a point of gravity. More... | |
Point (Point const &p) | |
Copy constructor. More... | |
virtual | ~Point () |
Point & | operator+= (Point const &x) |
Point & | operator-= (Point const &x) |
Point | operator+ (Point const &x) const |
Point | operator- (Point const &x) const |
double & | operator[] (size_t index) |
double | operator[] (size_t index) const |
size_t | dimension () const |
virtual double | getWeight () const |
virtual void | setWeight (double w) |
double | squaredL1distance (Point const &) const |
double | l1distance (Point const &) const |
double | squaredL2distance (Point const &) const |
double | l2distance (Point const &) const |
double | lpdistance (Point const &, double p) const |
double | squaredLpDistance (Point const &, double p) const |
double | kullbackleibler (Point const &) const |
Private Attributes | |
std::vector< double > | coordinates |
double | weight |
|
inline |
|
inline |
Point::Point | ( | std::vector< Point * > const & | v) |
Constructs a point of gravity.
InvalidArgumentException | [0] Can't consolidate points with different dimensions! |
|
inline |
InvalidArgumentException | [0] Incompatible dimensions! |
InvalidArgumentException | [0] Incompatible dimensions! |
InvalidArgumentException | [0] Incompatible dimensions! |
InvalidArgumentException | [0] Incompatible dimensions! |
|
inline |
|
inline |
|
inlinevirtual |
Implements CluE::WeightedObject.
|
inlinevirtual |
Implements CluE::WeightedObject.
double Point::squaredL1distance | ( | Point const & | p) | const |
InvalidArgumentException | [0] Incompatible dimensions! |
double Point::l1distance | ( | Point const & | p) | const |
InvalidArgumentException | [0] Incompatible dimensions! |
double Point::squaredL2distance | ( | Point const & | p) | const |
InvalidArgumentException | [0] Incompatible dimensions! |
double Point::l2distance | ( | Point const & | p) | const |
InvalidArgumentException | [0] Incompatible dimensions! |
double Point::lpdistance | ( | Point const & | p, |
double | p | ||
) | const |
InvalidArgumentException | [0] Incompatible dimensions! |
double Point::squaredLpDistance | ( | Point const & | p, |
double | p | ||
) | const |
InvalidArgumentException | [0] Incompatible dimensions! |
double Point::kullbackleibler | ( | Point const & | p) | const |
InvalidArgumentException | [0] Incompatible dimensions! |
InvalidRuntimeConfigurationException | [1] Point has coordinate <= 0. |