|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.features.CosInitAngleFE
public class CosInitAngleFE
CosInitAngleFE computes the cosine of the initial angle of a stroke. The angle is determined from the first and third mouse point. Return -1 if there's only one data point. One of Rubine's features.
Constructor Summary | |
---|---|
CosInitAngleFE()
|
Method Summary | |
---|---|
double |
apply(TimedStroke s)
Return the cosine of the initial angle of the stroke. |
static double |
cosInitAngle(TimedStroke s)
Return the cosine of the initial angle 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 CosInitAngleFE()
Method Detail |
---|
public double apply(TimedStroke s)
apply
in interface FeatureExtractor
public static double cosInitAngle(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 |