code: public double getDistanceToCenter(Point point) {
          return Nd4j.getExecutioner().execAndReturn(
                          ClusterUtils.createDistanceFunctionOp(distanceFunction, center.getArray(), point.getArray()))
                          .getFinalResult().doubleValue();
      }
docs: Get the distance to the given
  point from the cluster
  @param point the point to get the distance for
  @return