de.lmu.ifi.dbs.elki.data.spatial
Interface SpatialComparable

All Known Subinterfaces:
DeLiCluEntry, NumberVector<V,N>, SparseNumberVector<V,N>, SpatialEntry, SpatialNode<N,E>
All Known Implementing Classes:
AbstractNumberVector, AbstractRStarTreeNode, BitVector, CASHInterval, DeLiCluDirectoryEntry, DeLiCluLeafEntry, DeLiCluNode, DoubleVector, FloatVector, HyperBoundingBox, IntegerVector, ModifiableHyperBoundingBox, OneDimensionalDoubleVector, ParameterizationFunction, Polygon, PolygonsObject, RStarTreeNode, SparseFloatVector, SpatialDirectoryEntry, SpatialPair, SpatialPointLeafEntry

public interface SpatialComparable

Defines the required methods needed for comparison of spatial objects.


Method Summary
 int getDimensionality()
          Returns the dimensionality of the object.
 double getMax(int dimension)
          Returns the maximum coordinate at the specified dimension.
 double getMin(int dimension)
          Returns the minimum coordinate at the specified dimension.
 

Method Detail

getDimensionality

int getDimensionality()
Returns the dimensionality of the object.

Returns:
the dimensionality

getMin

double getMin(int dimension)
Returns the minimum coordinate at the specified dimension.

Parameters:
dimension - the dimension for which the coordinate should be returned, where 1 ≤ dimension ≤ getDimensionality()
Returns:
the minimum coordinate at the specified dimension

getMax

double getMax(int dimension)
Returns the maximum coordinate at the specified dimension.

Parameters:
dimension - the dimension for which the coordinate should be returned, where 1 ≤ dimension ≤ getDimensionality()
Returns:
the maximum coordinate at the specified dimension

Release 0.4.0 (2011-09-20_1324)