diva.sketch.recognition
Class Recognition

java.lang.Object
  extended by diva.sketch.recognition.Recognition

public class Recognition
extends Object

An interpretation of a stroke or a set of strokes as a data/confidence pair. The confidence varies between 0 and 1 inclusive.

Version:
$Revision: 1.1 $
Author:
Michael Shilman (michaels@eecs.berkeley.edu)

Constructor Summary
Recognition(TypedData data, double confidence)
          Construct a new recognition using the given data and confidence.
 
Method Summary
 double getConfidence()
          Return the confidence of this recognition as a value between 0 and 1, inclusive.
 TypedData getData()
          Return the data of this recognition.
 Type getType()
          Return the type of this recognition.
 String toString()
          Print the contents of this recognition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Recognition

public Recognition(TypedData data,
                   double confidence)
Construct a new recognition using the given data and confidence.

Method Detail

getConfidence

public double getConfidence()
Return the confidence of this recognition as a value between 0 and 1, inclusive.


getType

public Type getType()
Return the type of this recognition.


getData

public TypedData getData()
Return the data of this recognition.


toString

public String toString()
Print the contents of this recognition.

Overrides:
toString in class Object


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.