[4] | 1 | /* This program is free software; you can redistribute it and/or modify |
---|
| 2 | * it under the terms of the GNU General Public License as published by |
---|
| 3 | * the Free Software Foundation; either version 2 of the License, or |
---|
| 4 | * (at your option) any later version. |
---|
| 5 | * |
---|
| 6 | * This program is distributed in the hope that it will be useful, |
---|
| 7 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 8 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 9 | * GNU General Public License for more details. |
---|
| 10 | * |
---|
| 11 | * You should have received a copy of the GNU General Public License |
---|
| 12 | * along with this program; if not, write to the Free Software |
---|
| 13 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | /* |
---|
| 17 | * NumberOfClustersRequestable.java |
---|
| 18 | * Copyright (C) 2004 University of Waikato, Hamilton, New Zealand |
---|
| 19 | * |
---|
| 20 | */ |
---|
| 21 | |
---|
| 22 | package weka.clusterers; |
---|
| 23 | |
---|
| 24 | /** |
---|
| 25 | * Interface to a clusterer that can generate a requested number of |
---|
| 26 | * clusters |
---|
| 27 | * |
---|
| 28 | * @author Mark Hall |
---|
| 29 | * @version $Revision: 1.2 $ |
---|
| 30 | */ |
---|
| 31 | public interface NumberOfClustersRequestable { |
---|
| 32 | |
---|
| 33 | /** |
---|
| 34 | * Set the number of clusters to generate |
---|
| 35 | * |
---|
| 36 | * @param numClusters the number of clusters to generate |
---|
| 37 | * @exception Exception if the requested number of |
---|
| 38 | * clusters in inapropriate |
---|
| 39 | */ |
---|
| 40 | void setNumClusters(int numClusters) throws Exception; |
---|
| 41 | |
---|
| 42 | } |
---|
| 43 | |
---|