diva.sketch.features
Class SumOfAbsDeltaRatioFE

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

public class SumOfAbsDeltaRatioFE
extends Object
implements FeatureExtractor

SumOfAbsDeltaRatioFE computes the ratio of the sum of the absolute values of the delta y's and the sum of the absolute values of the delta x's (sum of |delta y|)/(sum of |delta x|).

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

Constructor Summary
SumOfAbsDeltaRatioFE()
           
 
Method Summary
 double apply(TimedStroke s)
          Return the ratio of the sum of the absolute values of the delta y's and the sum of the absolute values of the delta x's.
 String getName()
          Return the name of this feature extractor.
static double sumOfAbsDeltaRatio(TimedStroke s)
          Return the ratio of the sum of the absolute values of the delta y's and the sum of the absolute values of the delta x's.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SumOfAbsDeltaRatioFE

public SumOfAbsDeltaRatioFE()
Method Detail

apply

public double apply(TimedStroke s)
Return the ratio of the sum of the absolute values of the delta y's and the sum of the absolute values of the delta x's. (sum of |delta y|)/(sum of |delta x|).

Specified by:
apply in interface FeatureExtractor

getName

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

Specified by:
getName in interface FeatureExtractor

sumOfAbsDeltaRatio

public static double sumOfAbsDeltaRatio(TimedStroke s)
Return the ratio of the sum of the absolute values of the delta y's and the sum of the absolute values of the delta x's. (sum of |delta y|)/(sum of |delta x|).



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