|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.algorithm.siger.Statistics
public class Statistics
Computes statistics of a textual gesture class description.
| Constructor Summary | |
|---|---|
Statistics(List<Direction> directions,
org.sigtec.ink.Note note)
|
|
| Method Summary | |
|---|---|
int |
getCorners()
Returns the number of corners |
double |
getDiagonal()
Returns the number of diagonal elements |
double |
getEast()
Returns the number of East directions |
double |
getNorth()
Returns the number of north directions |
double |
getNorthEast()
Returns the number of north/east directions |
double |
getNorthWest()
Returns the number of north/west directions |
double |
getProximity()
Returns the proportional distance between the first and last point |
double |
getSouth()
Returns the number of south directions |
double |
getSouthEast()
Returns the number of south/east directions |
double |
getSouthWest()
Returns the number of south/west directions |
double |
getStraight()
Returns the number of straight elements |
int |
getTotalDirections()
Returns the number of direction elements |
int |
getTraces()
Returns the number of traces |
double |
getWest()
Returns the number of west directions |
boolean |
isDiagonal(Direction direction)
Returns true if the direction is diagonal |
boolean |
isStraight(Direction direction)
Returns true if the directions is straight |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Statistics(List<Direction> directions,
org.sigtec.ink.Note note)
| Method Detail |
|---|
public int getTotalDirections()
public double getStraight()
public double getDiagonal()
public double getProximity()
public double getEast()
public double getWest()
public double getNorth()
public double getSouth()
public double getNorthWest()
public double getSouthWest()
public double getNorthEast()
public double getSouthEast()
public int getTraces()
public boolean isStraight(Direction direction)
direction - the direction
public boolean isDiagonal(Direction direction)
direction - the direction
public int getCorners()
public String toString()
toString in class Object
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||