EuclideanDoublePoint implements Clusterable<EuclideanDoublePoint>, Serializable { public double[] getPoint() { return point; } EuclideanDoublePoint(final double[] point); EuclideanDoublePoint centroidOf(final Collection<EuclideanDoublePoint> points); double distanceFrom(final EuclideanDoublePoint p); @Override boolean equals(final Object other); double[] getPoint(); @Override int hashCode(); @Override String toString();  }
@Test public void testArrayIsReference() { final double[] array = { -3.0, -2.0, -1.0, 0.0, 1.0 }; Assert.assertArrayEquals(array, new EuclideanDoublePoint(array).getPoint(), 1.0e-15); }