DoublePoint
instead@Deprecated public class EuclideanDoublePoint extends Object implements Clusterable<EuclideanDoublePoint>, Serializable
Clusterable
for points with double coordinates.Constructor and Description |
---|
EuclideanDoublePoint(double[] point)
Deprecated.
Build an instance wrapping an integer array.
|
Modifier and Type | Method and Description |
---|---|
EuclideanDoublePoint |
centroidOf(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(Object other)
Deprecated.
|
double[] |
getPoint()
Deprecated.
Get the n-dimensional point in integer space.
|
int |
hashCode()
Deprecated.
|
String |
toString()
Deprecated.
|
public EuclideanDoublePoint(double[] point)
The wrapped array is referenced, it is not copied.
point
- the n-dimensional point in integer spacepublic EuclideanDoublePoint centroidOf(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 double[] getPoint()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.