diva.sketch.features
Class CosFirstLastPtsFE
java.lang.Object
diva.sketch.features.CosFirstLastPtsFE
- All Implemented Interfaces:
- FeatureExtractor
public class CosFirstLastPtsFE
- extends Object
- implements FeatureExtractor
Method Summary |
double |
apply(TimedStroke s)
Return the cosine of the angle between the first and last point
of the stroke. |
static double |
cosFirstLast(TimedStroke s)
Return the cosine of the angle between the first and 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 |
CosFirstLastPtsFE
public CosFirstLastPtsFE()
apply
public double apply(TimedStroke s)
- Return the cosine of the angle between the first and last point
of the stroke. Return -1 if there's only one data point.
- Specified by:
apply
in interface FeatureExtractor
cosFirstLast
public static double cosFirstLast(TimedStroke s)
- Return the cosine of the angle between the first and last point
of the stroke. Return -1 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.