code: public double getMinDist(VectorApproximation vec) {
      final int dim = lookup.length;
      double minDist = 0;
      for(int d = 0; d < dim; d++) {
        final int vp = vec.getApproximation(d);
        minDist += getPartialMinDist(d, vp);
      }
      return FastMath.pow(minDist, onebyp);
    }
docs: Get the minimum distance to approximated vector vec.
  
  @param vec Vector approximation
  @return Minimum distance