upstream version 1.2.2
[debian/freetts] / com / sun / speech / freetts / cart / CART.java
1 /**
2  * Portions Copyright 2001 Sun Microsystems, Inc.
3  * Portions Copyright 1999-2001 Language Technologies Institute, 
4  * Carnegie Mellon University.
5  * All Rights Reserved.  Use is subject to license terms.
6  * 
7  * See the file "license.terms" for information on usage and
8  * redistribution of this file, and for a DISCLAIMER OF ALL 
9  * WARRANTIES.
10  */
11 package com.sun.speech.freetts.cart;
12
13 import com.sun.speech.freetts.Item;
14
15 import java.io.DataOutputStream;
16 import java.io.IOException;
17
18 /**
19  * Generic interface for Classification and Regression Trees (CARTs) based
20  * on the Breiman, Friedman, Olshen, and Stone document "Classification and
21  * Regression Trees."  Wadsworth, Belmont, CA, 1984.
22  */
23 public interface CART {
24     /**
25      * Passes the given item through this CART and returns the
26      * interpretation.
27      *
28      * @param item the item to analyze
29      *
30      * @return the interpretation
31      */
32     public Object interpret(Item item);
33
34     /**
35      * Dumps this CART to the output stream.
36      *
37      * @param os the output stream
38      *
39      * @throws IOException if an error occurs during output
40      */
41     public void dumpBinary(DataOutputStream os) throws IOException ;
42 }
43
44
45