private Cluster<DendrogramModel> makeCluster(DBIDRef lead,double depth,DBIDs members){
  final String name;
  if (members.size() == 0) {
    name="mrg_" + DBIDUtil.toString(lead) + "_"+ depth;
  }
 else   if (!Double.isNaN(depth) && Double.isInfinite(depth) || (members.size() == 1 && members.contains(lead))) {
    name="obj_" + DBIDUtil.toString(lead);
  }
 else   if (!Double.isNaN(depth)) {
    name="clu_" + DBIDUtil.toString(lead) + "_"+ depth;
  }
 else {
    name="clu_" + DBIDUtil.toString(lead);
  }
  Cluster<DendrogramModel> cluster=new Cluster<>(name,members,new DendrogramModel(depth));
  return cluster;
}

private Cluster < DendrogramModel > makeCluster ( DBIDRef lead , double depth , DBIDs members ) { final String name ; if ( members . size ( ) == 0 ) { name = "mrg_" + DBIDUtil . toString ( lead ) + "_" + depth ; } else if ( ! Double . isNaN ( depth ) && Double . isInfinite ( depth ) || ( members . size ( ) == 1 && members . contains ( lead ) ) ) { name = "obj_" + DBIDUtil . toString ( lead ) ; } else if ( ! Double . isNaN ( depth ) ) { name = "clu_" + DBIDUtil . toString ( lead ) + "_" + depth ; } else { name = "clu_" + DBIDUtil . toString ( lead ) ; } Cluster < DendrogramModel > cluster = new Cluster < > ( name , members , new DendrogramModel ( depth ) ) ; return cluster ; }
make the cluster for the given object
