diva.sketch.features
Class DurationFE

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

public class DurationFE
extends Object
implements FeatureExtractor

DurationFE computes the amount of time taken to draw a stroke. Returns 0 if there's only one data point. One of Rubine's features.

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

Constructor Summary
DurationFE()
           
 
Method Summary
 double apply(TimedStroke s)
          Return the duration of the specified stroke.
static double duration(TimedStroke s)
          Return the duration of the specified 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

DurationFE

public DurationFE()
Method Detail

apply

public double apply(TimedStroke s)
Return the duration of the specified stroke. Return 0 if there's only one data point.

Specified by:
apply in interface FeatureExtractor

duration

public static double duration(TimedStroke s)
Return the duration of the specified stroke. Return 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.