|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.features.DistanceStartEndPtsFE
public class DistanceStartEndPtsFE
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.
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 |
---|
public DistanceStartEndPtsFE()
Method Detail |
---|
public double apply(TimedStroke s)
apply
in interface FeatureExtractor
public static double distanceStartEnd(TimedStroke s)
public String getName()
getName
in interface FeatureExtractor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |