public IClustering regspace(IDataInput data, IMetric<IDoubleArray> metric, double dmin)
{
RegularSpatialClustering clustering = new RegularSpatialClustering();
clustering.setDmin(dmin);
clustering.setMetric(metric);
clustering.setInput(data);
return (clustering);
}