|
Algorithm Development Kit 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IMultiPoint
A multi-dimensional point has a set of coordinates in d-dimensional space.
This interface is the d-dimensional counterpart to IPoint. Indeed
the classes which implement IPoint should also implement IMultiPoint
to enable two-dimensional data to be processed in the same way that d-dimensional
data can be.
| Method Summary | |
|---|---|
int |
dimensionality()
Return the dimensionality of this point. |
double |
distance(IMultiPoint imp)
Return the Euclidean distance between the given IMultiPoint object. |
double |
getCoordinate(int dx)
Return the coordinate value in the given dimension for the given point. |
double[] |
raw()
For optimizing computations, return double[] coordinates. |
| Method Detail |
|---|
int dimensionality()
double getCoordinate(int dx)
dx - the dimension 1 ≤ dx ≤ dimensionality() for the desired coordinate.double distance(IMultiPoint imp)
imp - other IMultiPoint to which we want to compute the Euclidean distance.double[] raw()
|
Algorithm Development Kit 1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||