|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.features.MaxSpeedFE
public class MaxSpeedFE
MaxSpeedFE computes the maximum speed (squared) along the path of a stroke. This is done by taking every two data points in the path and calculates ((delta X)^2 + (delta Y)^2)/(delta time)^2. At least 2 data points must exist in the path, otherwise 0 is returned. One of Rubine's features.
Constructor Summary | |
---|---|
MaxSpeedFE()
|
Method Summary | |
---|---|
double |
apply(TimedStroke s)
Return the maximum speed (squared) of the specified stroke. |
String |
getName()
Return the name of this feature extractor. |
static double |
maxSpeed(TimedStroke s)
Return the maximum speed (squared) of the specified stroke. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MaxSpeedFE()
Method Detail |
---|
public double apply(TimedStroke s)
apply
in interface FeatureExtractor
public String getName()
getName
in interface FeatureExtractor
public static double maxSpeed(TimedStroke s)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |