diva.sketch.features
Class CosInitAngleFE

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

public class CosInitAngleFE
extends Object
implements FeatureExtractor

CosInitAngleFE computes the cosine of the initial angle of a stroke. The angle is determined from the first and third mouse point. Return -1 if there's only one data point. One of Rubine's features.

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

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

Constructor Detail

CosInitAngleFE

public CosInitAngleFE()
Method Detail

apply

public double apply(TimedStroke s)
Return the cosine of the initial angle of the stroke. The angle is determined from the first and third mouse point. Return -1 if there's only one data point.

Specified by:
apply in interface FeatureExtractor

cosInitAngle

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


getName

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

Specified by:
getName in interface FeatureExtractor


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