diva.sketch.features
Class SumOfAbsoluteAnglesFE

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

public class SumOfAbsoluteAnglesFE
extends Object
implements FeatureExtractor

SumOfAbsoluteAnglesFE computes the sum of the absolute values of the angles along a stroke path. This is done by calculating the angles formed by every three consecutive data points in the path, taking the absolute values and summing them up. One of Rubine's features.

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

Constructor Summary
SumOfAbsoluteAnglesFE()
           
 
Method Summary
 double apply(TimedStroke s)
          Computes the sum of the absolute values of the angles along a stroke path.
 String getName()
          Return the name of this feature extractor.
static double sumOfAbsoluteAngles(TimedStroke s)
          Computes the sum of the absolute values of the angles along a stroke path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SumOfAbsoluteAnglesFE

public SumOfAbsoluteAnglesFE()
Method Detail

apply

public double apply(TimedStroke s)
Computes the sum of the absolute values of the angles along a stroke path. This is done by calculating the angles formed by every three consecutive data points in the path, taking the absolute values and summing them up. Return -1 if there are less than 3 points.

Specified by:
apply in interface FeatureExtractor

getName

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

Specified by:
getName in interface FeatureExtractor

sumOfAbsoluteAngles

public static double sumOfAbsoluteAngles(TimedStroke s)
Computes the sum of the absolute values of the angles along a stroke path. This is done by calculating the angles formed by every three consecutive data points in the path, taking the absolute values and summing them up. Return -1 if there are less than 3 points.



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