View Javadoc

1   /*
2    * @(#)$Id: Feature.java 689 2009-07-22 00:10:27Z bsigner $
3    *
4    * Author       :   Ueli Kurmann, igesture@uelikurmann.ch
5    *
6    * Purpose      : 	Interface to be implemented by any feature that
7    *                  describes a gesture.
8    *
9    * -----------------------------------------------------------------------
10   *
11   * Revision Information:
12   *
13   * Date             Who         Reason
14   *
15   * Dec 26, 2006     ukurmann    Initial Release
16   * Mar 15, 2007     bsigner     Cleanup
17   *
18   * -----------------------------------------------------------------------
19   *
20   * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
21   *
22   * This software is the proprietary information of ETH Zurich.
23   * Use is subject to license terms.
24   * 
25   */
26  
27  
28  package org.ximtec.igesture.algorithm.feature;
29  
30  import org.sigtec.ink.Note;
31  
32  
33  /**
34   * Interface to be implemented by any feature that describes a gesture.
35   * 
36   * @version 1.0 Dec 2006
37   * @author Ueli Kurmann, igesture@uelikurmann.ch
38   * @author Beat Signer, signer@inf.ethz.ch
39   */
40  public interface Feature {
41  
42     /**
43      * Computes the feature.
44      * 
45      * @param note the note to be used.
46      * @return the value of the feature.
47      * @throws FeatureException if the feature cannot be computed.
48      */
49     public double compute(Note note) throws FeatureException;
50  
51  
52     public int getMinimalNumberOfPoints();
53  
54  }