DoublePoint
instead@Deprecated public class EuclideanIntegerPoint extends java.lang.Object implements Clusterable<EuclideanIntegerPoint>, java.io.Serializable
Clusterable
for points with integer coordinates.Modifier and Type | Field and Description |
---|---|
private int[] |
point
Deprecated.
Point coordinates.
|
private static long |
serialVersionUID
Deprecated.
Serializable version identifier.
|
Constructor and Description |
---|
EuclideanIntegerPoint(int[] point)
Deprecated.
Build an instance wrapping an integer array.
|
Modifier and Type | Method and Description |
---|---|
EuclideanIntegerPoint |
centroidOf(java.util.Collection<EuclideanIntegerPoint> points)
Deprecated.
Returns the centroid of the given Collection of points.
|
double |
distanceFrom(EuclideanIntegerPoint p)
Deprecated.
Returns the distance from the given point.
|
boolean |
equals(java.lang.Object other)
Deprecated.
|
int[] |
getPoint()
Deprecated.
Get the n-dimensional point in integer space.
|
int |
hashCode()
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
private static final long serialVersionUID
private final int[] point
public EuclideanIntegerPoint(int[] point)
The wrapped array is referenced, it is not copied.
point
- the n-dimensional point in integer spacepublic int[] getPoint()
public double distanceFrom(EuclideanIntegerPoint p)
distanceFrom
in interface Clusterable<EuclideanIntegerPoint>
p
- the point to compute the distance frompublic EuclideanIntegerPoint centroidOf(java.util.Collection<EuclideanIntegerPoint> points)
centroidOf
in interface Clusterable<EuclideanIntegerPoint>
points
- the Collection of points to compute the centroid ofpublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2003-2016 Apache Software Foundation