diva.sketch.features
Class DistanceStartEndPtsFE

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

public class DistanceStartEndPtsFE
extends Object
implements FeatureExtractor

DistanceStartEndPtsFE computes the distance between the first and the last point of a stroke. Returns 0 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
DistanceStartEndPtsFE()
           
 
Method Summary
 double apply(TimedStroke s)
          Return the distance between the first and the last point of the stroke.
static double distanceStartEnd(TimedStroke s)
          Return the distance between the first and the last point 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

DistanceStartEndPtsFE

public DistanceStartEndPtsFE()
Method Detail

apply

public double apply(TimedStroke s)
Return the distance between the first and the last point of the stroke. Returns 0 if there's only one data point.

Specified by:
apply in interface FeatureExtractor

distanceStartEnd

public static double distanceStartEnd(TimedStroke s)
Return the distance between the first and the last point of the stroke. Returns 0 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.