#include <Cart.h>
Inherits Metric.
Inheritance diagram for Cart:
Static Public Member Functions | |
static double | Norm (const Point *const p) |
static double | Distance (const Point *const x, const Point *const y) |
static double | Volume (Cubic_Bounding_Box bb) |
Definition at line 22 of file Cart.h.
double Cart::Norm | ( | const Point *const | p | ) | [static] |
Calculates the euclidian norm of a point p.
p | The given point p |
Reimplemented from Metric.
Definition at line 14 of file Cart.cpp.
References Point::getCoordinate(), and Point::getDimension().
Referenced by Distance().
double Cart::Volume | ( | Cubic_Bounding_Box | bb | ) | [static] |
Calculates the volume of a given minimum bounding hyperrectangle, in the euclidian sense.
bb | The given MBR |
Reimplemented from Metric.
Definition at line 31 of file Cart.cpp.
References Cubic_Bounding_Box::_maxs, and Cubic_Bounding_Box::_mins.
Referenced by R_tree< r_tree_variation >::areaEnlargement(), Basic_R_tree::chooseLeaf(), TGS2_tree< base_tree >::cost_function(), TGS_tree< base_tree >::cost_function(), RTGS_tree< base_tree >::cost_function(), R_tree< r_tree_variation >::deadSpace(), Basic_R_tree::quadraticSplitElements(), and Basic_R_tree::quadraticSplitNodes().