diva.sketch.features
Class SineInitAngleFE

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

public class SineInitAngleFE
extends Object
implements FeatureExtractor

SineInitAngleFE computes the sine of the initial angle of a stroke. The angle is determined by the first and the third mouse points.

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

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

Constructor Detail

SineInitAngleFE

public SineInitAngleFE()
Method Detail

apply

public double apply(TimedStroke s)
Return the sine of the initial angle of the stroke. The angle is determined by the first and the third mouse points. Return -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

sineInitAngle

public static double sineInitAngle(TimedStroke s)
Return the sine of the initial angle of the stroke. The angle is determined by the first and the third mouse points. Return -1 if there's only one data point.



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