public class DoublePoint extends Object implements Clusterable, Serializable
Clusterable
for points with double coordinates.Constructor and Description |
---|
DoublePoint(double[] point)
Build an instance wrapping an double array.
|
DoublePoint(int[] point)
Build an instance wrapping an integer array.
|
public DoublePoint(double[] point)
The wrapped array is referenced, it is not copied.
point
- the n-dimensional point in double spacepublic DoublePoint(int[] point)
The wrapped array is copied to an internal double array.
point
- the n-dimensional point in integer spacepublic double[] getPoint()
getPoint
in interface Clusterable
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.