Cart Class Reference

#include <Cart.h>

Inherits Metric.

Inheritance diagram for Cart:

Inheritance graph
[legend]
Collaboration diagram for Cart:

Collaboration graph
[legend]
List of all members.

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)

Detailed Description

This class represents Cartesian measurement of points in any space.

Definition at line 22 of file Cart.h.


Member Function Documentation

double Cart::Norm ( const Point *const  p  )  [static]

Calculates the euclidian norm of a point p.

Parameters:
p The given point p
Returns:
The requested euclidian norm

Reimplemented from Metric.

Definition at line 14 of file Cart.cpp.

References Point::getCoordinate(), and Point::getDimension().

Referenced by Distance().

double Cart::Distance ( const Point *const  x,
const Point *const  y 
) [static]

Calculates the euclidian distance between two points.

Parameters:
x A given point in space
y A given point in space
Returns:
x-y, in the euclidian sense

Reimplemented from Metric.

Definition at line 27 of file Cart.cpp.

References Norm().

double Cart::Volume ( Cubic_Bounding_Box  bb  )  [static]

Calculates the volume of a given minimum bounding hyperrectangle, in the euclidian sense.

Parameters:
bb The given MBR
Returns:
The volume of bb

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().


The documentation for this class was generated from the following files:
Generated on Sat Oct 13 17:34:43 2007 for R-Tree by  doxygen 1.5.2