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