code: public void merge(Cluster<T> other) {
          VectorMath.add(centroid, other.centroid());
          for (T otherDataPoint : other.dataPointValues())
              VectorMath.add(centroid, otherDataPoint);
  
          for (int i = other.dataPointIds().nextSetBit(0); i >= 0;
                   i = other.dataPointIds().nextSetBit(i+1))
              assignments.set(i);
      }
docs: {@inheritDoc}