/**
   * True if equal else false
   *
   * @param c1
   * @param c2
   * @return
   */
  private boolean compareTwoCentroids(Centroid c1, Centroid c2) {
    if (c1.getAttrList().size() == c2.getAttrList().size()) {
      for (int i = 0; i < c1.getAttrList().size(); i++) {
        if (c1.getAttrList().get(i).compareTo(c2.getAttrList().get(i)) != 0) {

          return false;
        }
      }
    } else {
      TrainingLog.mainLogs.log(Level.INFO, "Mismatch in size");
      return false;
    }

    return true;
  }