diva.sketch.features
Class SineFirstLastPtsFE

java.lang.Object
  extended by diva.sketch.features.SineFirstLastPtsFE
All Implemented Interfaces:
FeatureExtractor

public class SineFirstLastPtsFE
extends Object
implements FeatureExtractor

SineFirstLastPtsFE computes the sine of the angle between the first and the last points of a stroke. One of Rubine's features.

Version:
$Revision: 1.9 $
Author:
Heloise Hse (hwawen@eecs.berkeley.edu)

Constructor Summary
SineFirstLastPtsFE()
           
 
Method Summary
 double apply(TimedStroke s)
          Return the sine of the angle between the first and the last points of the stroke.
 String getName()
          Return the name of this feature extractor.
static double sineFirstLast(TimedStroke s)
          Return the sine of the angle between the first and the last points of the stroke.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SineFirstLastPtsFE

public SineFirstLastPtsFE()
Method Detail

apply

public double apply(TimedStroke s)
Return the sine of the angle between the first and the last points of the stroke. Returns -1 if there's only one data point.

Specified by:
apply in interface FeatureExtractor

getName

public String getName()
Return the name of this feature extractor.

Specified by:
getName in interface FeatureExtractor

sineFirstLast

public static double sineFirstLast(TimedStroke s)
Return the sine of the angle between the first and the last points of the stroke. Returns -1 if there's only one data point.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.