|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.features.PathLengthFE
public class PathLengthFE
PathLengthFE computes the path length of a stroke by enumerating over the points in the stroke and summing up the distances between every two consecutive points. One of Rubine's features.
Constructor Summary | |
---|---|
PathLengthFE()
|
Method Summary | |
---|---|
double |
apply(TimedStroke s)
Return the path length of a stroke by enumerating over the points in the stroke and summing up the distances between every two consecutive points. |
String |
getName()
Return the name of this feature extractor. |
static double |
pathLength(TimedStroke s)
Return the path length of a stroke by enumerating over the points in the stroke and summing up the distances between every two consecutive points. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PathLengthFE()
Method Detail |
---|
public double apply(TimedStroke s)
apply
in interface FeatureExtractor
public String getName()
getName
in interface FeatureExtractor
public static final double pathLength(TimedStroke s)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |