source: src/main/java/weka/associations/Associator.java @ 12

Last change on this file since 12 was 4, checked in by gnappo, 14 years ago

Import di weka.

File size: 1.7 KB
RevLine 
[4]1/*
2 *    This program is free software; you can redistribute it and/or modify
3 *    it under the terms of the GNU General Public License as published by
4 *    the Free Software Foundation; either version 2 of the License, or
5 *    (at your option) any later version.
6 *
7 *    This program is distributed in the hope that it will be useful,
8 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
9 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 *    GNU General Public License for more details.
11 *
12 *    You should have received a copy of the GNU General Public License
13 *    along with this program; if not, write to the Free Software
14 *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15 */
16
17/*
18 *    Associator.java
19 *    Copyright (C) 1999 University of Waikato, Hamilton, New Zealand
20 *
21 */
22
23package weka.associations;
24
25import weka.core.Instances;
26import weka.core.Capabilities;
27
28public interface Associator {
29
30  /**
31   * Generates an associator. Must initialize all fields of the associator
32   * that are not being set via options (ie. multiple calls of buildAssociator
33   * must always lead to the same result). Must not change the dataset
34   * in any way.
35   *
36   * @param data set of instances serving as training data
37   * @exception Exception if the associator has not been
38   * generated successfully
39   */
40  void buildAssociations(Instances data) throws Exception;
41
42  /**
43   * Returns the Capabilities of this associator. Derived associators have to
44   * override this method to enable capabilities.
45   *
46   * @return            the capabilities of this object
47   * @see               Capabilities
48   */
49  Capabilities getCapabilities();
50}
Note: See TracBrowser for help on using the repository browser.