Deprecated
As of 3.2 (to be removed in 4.0),
use org. instead
Clusterable for points with double coordinates.
| Modifier and Type | Field and Description |
|---|---|
| private final double[] | point
Point coordinates. |
| private static final long | serialVersionUID
Serializable version identifier. |
| Access | Constructor and Description |
|---|---|
| public | EuclideanDoublePoint(final double[]
the n-dimensional point in integer space point)Build an instance wrapping an integer array. |
| Modifier and Type | Method and Description |
|---|---|
| public EuclideanDoublePoint | centroidOf(final Collection<EuclideanDoublePoint>
the Collection of points to compute the centroid of points)Implements org.
Deprecated
as a consequence of
EuclideanDoublePoint being deprecated.
Returns the centroid of the given Collection of points. |
| public double | distanceFrom(final EuclideanDoublePoint
the point to compute the distance from p)Implements org.
Deprecated
as a consequence of
EuclideanDoublePoint being deprecated.
Returns the distance from the given point. |
| public boolean | equals(final Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public double[] | Returns: a reference (not a copy!) to the wrapped arrayGet the n-dimensional point in integer space. |
| public int | |
| public String |
| point | back to summary |
|---|---|
| private final double[] point Point coordinates. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serializable version identifier. | |
| EuclideanDoublePoint | back to summary |
|---|---|
| public EuclideanDoublePoint(final double[] point) Build an instance wrapping an integer array. The wrapped array is referenced, it is not copied.
| |
| centroidOf | back to summary |
|---|---|
| public EuclideanDoublePoint centroidOf(final Collection<EuclideanDoublePoint> points) Implements org. Doc from org. Deprecated as a consequence of Returns the centroid of the given Collection of points.
| |
| distanceFrom | back to summary |
|---|---|
| public double distanceFrom(final EuclideanDoublePoint p) Implements org. Doc from org. Deprecated as a consequence of Returns the distance from the given point.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getPoint | back to summary |
|---|---|
| public double[] getPoint() Get the n-dimensional point in integer space.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |