edu.stanford.hci.r3.pen.gesture
Class Gesture

java.lang.Object
  extended by edu.stanford.hci.r3.pen.gesture.Gesture

public class Gesture
extends java.lang.Object


Constructor Summary
Gesture(java.lang.String name)
           
 
Method Summary
 void addGesture(ShapeContext context)
           
 double averageMatch(ShapeContext context)
           
 double bestMatch(ShapeContext context)
           
 void determineClassParameters()
           
 void knnMatch(ShapeContext context, int k, double[] distance, java.lang.String[] clazz, boolean verbose)
           
 void quillWrite(java.io.Writer writer)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gesture

public Gesture(java.lang.String name)
Method Detail

addGesture

public void addGesture(ShapeContext context)

averageMatch

public double averageMatch(ShapeContext context)

bestMatch

public double bestMatch(ShapeContext context)

determineClassParameters

public void determineClassParameters()

knnMatch

public void knnMatch(ShapeContext context,
                     int k,
                     double[] distance,
                     java.lang.String[] clazz,
                     boolean verbose)

quillWrite

public void quillWrite(java.io.Writer writer)
                throws java.io.IOException
Throws:
java.io.IOException

size

public int size()

Copyright 2006 Stanford University