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 | DoublePoint(final double[]
the n-dimensional point in double space point)Build an instance wrapping an double array. |
| public | DoublePoint(final int[]
the n-dimensional point in integer space point)Build an instance wrapping an integer array. |
| Modifier and Type | Method and Description |
|---|---|
| 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[] | getPoint()
Implements org. Gets the n-dimensional point. |
| 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. | |
| DoublePoint | back to summary |
|---|---|
| public DoublePoint(final double[] point) Build an instance wrapping an double array. The wrapped array is referenced, it is not copied.
| |
| DoublePoint | back to summary |
|---|---|
| public DoublePoint(final int[] point) Build an instance wrapping an integer array. The wrapped array is copied to an internal double array.
| |
| 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() Implements org. Doc from org. Gets the n-dimensional point.
| |
| 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- | |