Interface DistanceFunctionFactory.IEuclideanCoordinate
- Enclosing class:
- DistanceFunctionFactory
public static interface DistanceFunctionFactory.IEuclideanCoordinate
An interface to represent coordinates in Euclidean spaces.
- See Also:
- "Euclidean Space" article at Wikipedia
-
Method Summary
Modifier and Type Method Description int
dimensions()
The number of dimensions.double
get(int index)
A method to access theindex
-th component of the coordinate.
-
Method Details
-
dimensions
int dimensions()The number of dimensions.- Returns:
- returns the number of dimensions.
-
get
double get(int index)A method to access theindex
-th component of the coordinate.- Parameters:
index
- The index of the component. Must be less thandimensions()
.- Returns:
- returns value with the given index
-