A B C D E F G H I J K L M N P R S T U V W X Z _

A

ATTRIBUTE_CDATA - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the attribute value is a string value.
ATTRIBUTE_DEFAULT_FIXED - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the attribute was declared #FIXED.
ATTRIBUTE_DEFAULT_IMPLIED - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the attribute was declared #IMPLIED.
ATTRIBUTE_DEFAULT_REQUIRED - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the attribute was declared #REQUIRED.
ATTRIBUTE_DEFAULT_SPECIFIED - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the attribute has a literal default value specified.
ATTRIBUTE_DEFAULT_UNDECLARED - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the attribute is not declared.
ATTRIBUTE_ENTITIES - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the attribute value is a list of entity names.
ATTRIBUTE_ENTITY - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the attribute value is the name of an entity.
ATTRIBUTE_ENUMERATED - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the attribute value is a token from an enumeration.
ATTRIBUTE_ID - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the attribute value is a unique identifier.
ATTRIBUTE_IDREF - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the attribute value is a reference to a unique identifier.
ATTRIBUTE_IDREFS - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the attribute value is a list of ID references.
ATTRIBUTE_NMTOKEN - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the attribute value is a name token.
ATTRIBUTE_NMTOKENS - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the attribute value is a list of name tokens.
ATTRIBUTE_NOTATION - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the attribute is the name of a notation.
ATTRIBUTE_UNDECLARED - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the attribute has not been declared for this element type.
ApproximateStrokeFilter - class hhreco.toolbox.ApproximateStrokeFilter.
Implementation of a point reduction technique.
ApproximateStrokeFilter() - Constructor for class hhreco.toolbox.ApproximateStrokeFilter
Construct a ApproximateStrokeFilter with default threshold distance of 4 units.
ApproximateStrokeFilter(double) - Constructor for class hhreco.toolbox.ApproximateStrokeFilter
Construct a ApproximateStrokeFilter with the given threshold.
addAndRetrain(String, TimedStroke[]) - Method in class hhreco.recognition.HHRecognizer
Add the given shape to the existing training set and retrain the recognizer.
addAndRetrain(MSTrainingModel) - Method in class hhreco.recognition.HHRecognizer
Add the given set of data to the existing training set and retrain the recognizer.
addExample(String, FeatureSet, int) - Method in class hhreco.classification.TrainingSet
Add a example to this training set for the given type (either positive or negative, denoted by the "which" argument).
addExample(String, TimedStroke[], boolean) - Method in class hhreco.recognition.MSTrainingModel
Add an example to this training model for the given type (either positive or negative, denoted by the "which" argument).
addNativeType(String) - Static method in class hhreco.recognition.Type
Record the specified type so that objects of this type can be automatically generated on the fly.
addNegativeExample(String, FeatureSet) - Method in class hhreco.classification.TrainingSet
Add a negative example to this training set for the given type.
addNegativeExample(String, TimedStroke[]) - Method in class hhreco.recognition.MSTrainingModel
Add a negative example to this training model for the given type.
addPositiveExample(String, FeatureSet) - Method in class hhreco.classification.TrainingSet
Add a positive example to this training set for the given type.
addPositiveExample(String, TimedStroke[]) - Method in class hhreco.recognition.MSTrainingModel
Add a positive example to this training model for the given type.
addRecognition(Recognition) - Method in class hhreco.recognition.RecognitionSet
Add a recognition to the set by inserting it in descending order of confidence value.
addVertex(double, double, long) - Method in class hhreco.recognition.TimedStroke
Add a pair of x, y coordinates in the stroke path and the corresponding timestamp.
apply(TimedStroke[]) - Method in interface hhreco.recognition.FeatureExtractor
Return the feature values extracted from the set of strokes.
apply(TimedStroke[]) - Method in class hhreco.recognition.ZernikeFE
Return the magnitudes of the Zernike moments of the default order.
apply(TimedStroke[], int) - Method in class hhreco.recognition.ZernikeFE
Return the magnitudes of the Zernike moments of the specified order.
apply(TimedStroke) - Method in class hhreco.toolbox.ApproximateStrokeFilter
Reduce the number of points in the given pen stroke using the "approximation by line segments" algorithm.
apply(TimedStroke) - Method in class hhreco.toolbox.InterpolateStrokeFilter
Interpolate the given stroke such that no 2 consecutive points in the stroke has a distance greater than the pre-defined spacing.
apply(TimedStroke) - Method in class hhreco.toolbox.StrokeFilter
Apply a filtering algorithm on the specified pen stroke and return the filtered stroke.
approximate(TimedStroke) - Static method in class hhreco.toolbox.ApproximateStrokeFilter
Reduce the number of points in the given pen stroke using the "approximation by line segments" algorithm.
approximate(TimedStroke, double) - Static method in class hhreco.toolbox.ApproximateStrokeFilter
Approximate the given stroke using the specified threshold distance.
attribute(String, String, boolean) - Method in class hhreco.recognition.MSTrainingParser
Handle an attribute value assignment.
attribute(String, String, boolean) - Method in class hhreco.util.aelfred.HandlerBase
Handle an attribute assignment.
attribute(String, String, boolean) - Method in interface hhreco.util.aelfred.XmlHandler
Attribute.

B

Basis - class hhreco.fragmentation.Basis.
A basis represents a basic unit of a shape, minimal yet perceptually relevant.
Basis(double[], double[], int, int, double[], double) - Constructor for class hhreco.fragmentation.Basis
Create a Basis object and initialize its attributes, the original points, number of points, the type of basis, parameters for the basis, and the fitting error resulting from the approximation of the original points with this basis.

C

CONTENT_ANY - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the element has a content model of ANY.
CONTENT_ELEMENTS - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the element has element content.
CONTENT_EMPTY - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the element has declared content of EMPTY.
CONTENT_MIXED - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the element has mixed content.
CONTENT_UNDECLARED - Static variable in class hhreco.util.aelfred.XmlParser
Constant: an element has not been declared.
CX - Static variable in class hhreco.recognition.HHRecognizer
 
CY - Static variable in class hhreco.recognition.HHRecognizer
 
Classification - class hhreco.classification.Classification.
Data structure for storing a list of classifer type and confidence value pairs in the order of descending confidence values.
Classification(String[], double[]) - Constructor for class hhreco.classification.Classification
Construct a classification with no types.
Classifier - interface hhreco.classification.Classifier.
A Classifier performs generic classification on feature sets, the semantics of which it knows nothing about.
ClassifierException - exception hhreco.classification.ClassifierException.
Thrown when there is some internal error in the training or classification process.
ClassifierException() - Constructor for class hhreco.classification.ClassifierException
Construct a ClassifierException with no error message.
ClassifierException(String) - Constructor for class hhreco.classification.ClassifierException
Construct a ClassifierException with the specified error message.
charData(char[], int, int) - Method in class hhreco.util.aelfred.HandlerBase
Handle character data.
charData(char[], int, int) - Method in interface hhreco.util.aelfred.XmlHandler
Character data.
checkEncoding(String, boolean) - Method in class hhreco.util.aelfred.XmlParser
Check that the encoding specified makes sense.
choldc(double[][], int, double[][]) - Static method in class hhreco.fragmentation.FittingUtil
 
classify(FeatureSet) - Method in interface hhreco.classification.Classifier
Return a classification for the specified feature set, or throw a runtime exception if the given feature set does not have the same number of features as the training examples.
classify(FeatureSet) - Method in class hhreco.classification.KNNClassifier
Classify the given example by testing it against each example in the training set.
classify(FeatureSet) - Method in class hhreco.classification.MMDClassifier
Classify the given example by computing the normalized Euclidean distance to each training class.
classify(FeatureSet) - Method in class hhreco.classification.SVMClassifier
Classify the given example using SVM.
cleanupVariables() - Method in class hhreco.util.aelfred.XmlParser
Clean up after the parse to allow some garbage collection.
clear() - Method in class hhreco.classification.KNNClassifier
Remove previously trained data.
clear() - Method in class hhreco.classification.MMDClassifier
Clear all previously trained data.
clear() - Method in class hhreco.classification.SVMClassifier
 
clear() - Method in interface hhreco.classification.TrainableClassifier
Clear all results of previous trainings (presumably so that this classifier can be trained again from scratch).
clear() - Method in class hhreco.recognition.MSTrainingModel
Remvoe all data from the model.
combine(MSTrainingModel) - Method in class hhreco.recognition.MSTrainingModel
Add the data in the specified model into "this" model.
computeMeans(double[][], int) - Static method in class hhreco.classification.DataRep
Compute the means for the feature elements from the given set of examples, fvals.
computeStd(double[], double[][], int) - Static method in class hhreco.classification.DataRep
Compute the standard deviations for the feature elements from the given set of examples, fvals.
computeVariances(double[], double[][], int) - Static method in class hhreco.classification.DataRep
Compute the variances for the feature elements from the given set of examples, fvals.
containsType(String) - Method in class hhreco.classification.TrainingSet
Return true if the training type with the specified name is in the set, or false otherwise.
containsType(String) - Method in class hhreco.recognition.MSTrainingModel
Return true if the training type with the specified name is in the model, or false otherwise.
copyIso8859_1ReadBuffer(int) - Method in class hhreco.util.aelfred.XmlParser
Convert a buffer of ISO-8859-1-encoded bytes into UTF-16 characters.
copyUcs2ReadBuffer(int, int, int) - Method in class hhreco.util.aelfred.XmlParser
Convert a buffer of UCS-2-encoded bytes into UTF-16 characters.
copyUcs4ReadBuffer(int, int, int, int, int) - Method in class hhreco.util.aelfred.XmlParser
Convert a buffer of UCS-4-encoded bytes into UTF-16 characters.
copyUtf8ReadBuffer(int) - Method in class hhreco.util.aelfred.XmlParser
Convert a buffer of UTF-8-encoded bytes into UTF-16 characters.
createTypedData() - Method in class hhreco.recognition.Type
Create a TypedData object by instantiating an object based on the Class specified in this Type object.

D

DEFAULT_ORDER - Static variable in class hhreco.recognition.ZernikeFE
The default order of Zernike moments is set to 8.
DEFAULT_SPACING - Static variable in class hhreco.toolbox.InterpolateStrokeFilter
The maximum spacing allowed between two consecutive points.
DEFAULT_THRESH_DISTANCE - Static variable in class hhreco.toolbox.ApproximateStrokeFilter
If the farthest point from a line segment is less than the DEFAULT_THRESH_DISTANCE, remove all of the in-between points.
DTD_1 - Static variable in class hhreco.recognition.MSTrainingParser
The DTD for sketch files.
DTD_URL - Static variable in class hhreco.recognition.MSTrainingParser
The URL where the DTD is stored.
DataRep - class hhreco.classification.DataRep.
Representing a collection of data with the means, standard deviations, and variances of the feature components.
DataRep(FeatureSet[], int) - Constructor for class hhreco.classification.DataRep
Compute the means, standard deviations, variances from the given set of feature vectors.
dataBufferAppend(char) - Method in class hhreco.util.aelfred.XmlParser
Add a character to the data buffer.
dataBufferAppend(String) - Method in class hhreco.util.aelfred.XmlParser
Add a string to the data buffer.
dataBufferAppend(char[], int, int) - Method in class hhreco.util.aelfred.XmlParser
Append (part of) a character array to the data buffer.
dataBufferFlush() - Method in class hhreco.util.aelfred.XmlParser
Flush the contents of the data buffer to the handler, if appropriate, and reset the buffer for new input.
dataBufferNormalize() - Method in class hhreco.util.aelfred.XmlParser
Normalise whitespace in the data buffer.
dataBufferToString() - Method in class hhreco.util.aelfred.XmlParser
Convert the data buffer to a string.
declaredAttributes(String) - Method in class hhreco.util.aelfred.XmlParser
Get the declared attributes for an element type.
declaredElements() - Method in class hhreco.util.aelfred.XmlParser
Get the declared elements for an XML document.
declaredEntities() - Method in class hhreco.util.aelfred.XmlParser
Get declared entities.
declaredNotations() - Method in class hhreco.util.aelfred.XmlParser
Get declared notations.
defaultFeatureExtractors() - Static method in class hhreco.recognition.HHRecognizer
 
defaultSVMParam() - Static method in class hhreco.classification.SVMClassifier
Set up the default set of parameters for the SVM classifier.
deselect() - Method in class hhreco.apps.FragmentApp.SD
 
detectEncoding() - Method in class hhreco.util.aelfred.XmlParser
Attempt to detect the encoding of an entity.
distance(double, double, double, double) - Static method in class hhreco.toolbox.Util
Return the Euclidean distance between two points, (x1, y1) and (x2, y2).
doctypeDecl(String, String, String) - Method in class hhreco.util.aelfred.HandlerBase
Handle a document type declaration.
doctypeDecl(String, String, String) - Method in interface hhreco.util.aelfred.XmlHandler
Document type declaration.
draw_conic(double[], int, double[][], double[]) - Static method in class hhreco.fragmentation.FittingUtil
 

E

EMPTY_BORDER - Static variable in class hhreco.apps.FragmentApp.SD
 
ENTITY_INTERNAL - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the entity is internal.
ENTITY_NDATA - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the entity is external, non-XML data.
ENTITY_TEXT - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the entity is external XML data.
ENTITY_UNDECLARED - Static variable in class hhreco.util.aelfred.XmlParser
Constant: the entity has not been declared.
EXAMPLE_TAG - Static variable in class hhreco.recognition.MSTrainingParser
Indicate an example.
EllipseBasis - class hhreco.fragmentation.EllipseBasis.
An EllipseBasis uses an ellipse to approximate a set of points.
EllipseBasis(double[], double[], int, double[]) - Constructor for class hhreco.fragmentation.EllipseBasis
Create an ellipse basis where params give the parameters of an ellipse that best approximate the given set of points.
eigen(double[][], double[], double[][]) - Static method in class hhreco.fragmentation.FittingUtil
Find the eigenvalues for 2x2 matrix m.
ellipseFit(double[], double[], int) - Static method in class hhreco.fragmentation.Fragmenter
Fit an ellipse to the set of points.
ellipticalFit(double[], double[], int, double[]) - Static method in class hhreco.fragmentation.FittingUtil
Given a set of points, calculate the ellipse that best fit this set of points.
encodingError(String, int, int) - Method in class hhreco.util.aelfred.XmlParser
Report a character encoding error.
endDocument() - Method in class hhreco.util.aelfred.HandlerBase
Handle the end of the document.
endDocument() - Method in interface hhreco.util.aelfred.XmlHandler
End the document.
endElement(String) - Method in class hhreco.recognition.MSTrainingParser
Handle the end of an element.
endElement(String) - Method in class hhreco.util.aelfred.HandlerBase
Handle the end of an element.
endElement(String) - Method in interface hhreco.util.aelfred.XmlHandler
End an element.
endExternalEntity(String) - Method in class hhreco.util.aelfred.HandlerBase
Handle the end of an external entity.
endExternalEntity(String) - Method in interface hhreco.util.aelfred.XmlHandler
End an external entity.
equals(Object) - Method in class hhreco.recognition.Type
Check the equivalence of this object and the specified object.
error(String, String, int, int) - Method in class hhreco.util.aelfred.HandlerBase
Throw an exception for a fatal error.
error(String, String, int, int) - Method in interface hhreco.util.aelfred.XmlHandler
Fatal XML parsing error.
error(String, String, String) - Method in class hhreco.util.aelfred.XmlParser
Report an error.
error(String, char, String) - Method in class hhreco.util.aelfred.XmlParser
Report a serious error.
extendArray(Object, int, int) - Method in class hhreco.util.aelfred.XmlParser
Ensure the capacity of an array, allocating a new one if necessary.
extractFeatures(FeatureExtractor[], TimedStroke[]) - Static method in class hhreco.recognition.HHRecognizer
Extract features from the given set of strokes.

F

FRAME_HEIGHT - Static variable in class hhreco.apps.FragmentApp
 
FRAME_WIDTH - Static variable in class hhreco.apps.FragmentApp
 
FeatureExtractor - interface hhreco.recognition.FeatureExtractor.
A feature extractor performs computation on a set of strokes and outputs the feature values.
FeatureSet - class hhreco.classification.FeatureSet.
A data structure for storing features of an example; it is basically a typesafe array of doubles with appropriate accessor methods.
FeatureSet(int) - Constructor for class hhreco.classification.FeatureSet
Create a feature vector of size 'num'.
FeatureSet(double[]) - Constructor for class hhreco.classification.FeatureSet
Create a feature vector with the given vector.
FitData - class hhreco.fragmentation.FitData.
A data structure storing a set of bases that represents a particular fragmentation of a symbol.
FitData(Basis[], int[], int) - Constructor for class hhreco.fragmentation.FitData
Each basis correspond to a stroke index.
FittingUtil - class hhreco.fragmentation.FittingUtil.
This class contains routines used during fragmentation and fitting.
FittingUtil() - Constructor for class hhreco.fragmentation.FittingUtil
 
FragmentApp - class hhreco.apps.FragmentApp.
 
FragmentApp(String) - Constructor for class hhreco.apps.FragmentApp
 
FragmentApp.SCDisplay - class hhreco.apps.FragmentApp.SCDisplay.
Given a set of SD objects that are of one class, arrange them in a GridLayout panel.
FragmentApp.SCDisplay(String, FragmentApp.SD[]) - Constructor for class hhreco.apps.FragmentApp.SCDisplay
 
FragmentApp.SD - class hhreco.apps.FragmentApp.SD.
Given a set of strokes, display them on a panel.
FragmentApp.SD(FragmentApp.SD, int, int) - Constructor for class hhreco.apps.FragmentApp.SD
 
FragmentApp.SD(FragmentApp.SD, String) - Constructor for class hhreco.apps.FragmentApp.SD
Copy constructor.
FragmentApp.SD(TimedStroke[], TimedStroke[]) - Constructor for class hhreco.apps.FragmentApp.SD
Instantiate a SD that paints the given set of strokes.
Fragmenter - class hhreco.fragmentation.Fragmenter.
Implementation of the fragmentation algorithms that fragment a symbol based on templates specification.
Fragmenter() - Constructor for class hhreco.fragmentation.Fragmenter
 
filterCR() - Method in class hhreco.util.aelfred.XmlParser
Filter carriage returns in the read buffer.
fragmentWithTemplate(TimedStroke[], int, int) - Static method in class hhreco.fragmentation.Fragmenter
Fragment the given sequence of strokes with the number of ellipses and the number of lines specified by numE and numL.
fragmentWithTemplate(TimedStroke[], String) - Static method in class hhreco.fragmentation.Fragmenter
Fragment the given sequence of strokes with the specified template, an ordered sequence of E's and L's.

G

genPoints(Point2D, Point2D, double[], double[], int) - Method in class hhreco.fragmentation.EllipseBasis
Generate points from p1 to p2 in the direction of the stroke.
getAttribute(String, String) - Method in class hhreco.util.aelfred.XmlParser
Retrieve the three-member array representing an attribute declaration.
getAttributeDefaultValue(String, String) - Method in class hhreco.util.aelfred.XmlParser
Retrieve the default value of a declared attribute.
getAttributeDefaultValueType(String, String) - Method in class hhreco.util.aelfred.XmlParser
Retrieve the default value type of a declared attribute.
getAttributeEnumeration(String, String) - Method in class hhreco.util.aelfred.XmlParser
Retrieve the allowed values for an enumerated attribute type.
getAttributeExpandedValue(String, String) - Method in class hhreco.util.aelfred.XmlParser
Retrieve the expanded value of a declared attribute.
getAttributeType(String, String) - Method in class hhreco.util.aelfred.XmlParser
Retrieve the declared type of an attribute.
getBasis(int) - Method in class hhreco.fragmentation.FitData
Return the basis at the specified index.
getBasisCount() - Method in class hhreco.fragmentation.FitData
Return the number of bases in this fitting.
getBounds(TimedStroke[]) - Static method in class hhreco.toolbox.Util
Return the bounding box enclosing the set of strokes.
getBounds2D() - Method in class hhreco.recognition.TimedStroke
Get the bounds of the polyline in Rectangle2D.Double.
getBreakpointsOnStroke(int) - Method in class hhreco.fragmentation.FitData
Return the breakpoints on the specified stroke (by stroke index).
getCenter() - Method in class hhreco.fragmentation.EllipseBasis
Return the center of the ellipse
getCircumference() - Method in class hhreco.fragmentation.EllipseBasis
Return the approximated circumference of this ellipse (the entier ellipse, not just the segment)
getColumn() - Method in class hhreco.util.aelfred.XmlException
Get the column number containing the error.
getColumnNumber() - Method in class hhreco.util.aelfred.XmlParser
Return the current column number.
getConfidence(int) - Method in class hhreco.classification.Classification
Return the i'th confidence.
getConfidence() - Method in class hhreco.recognition.Recognition
Return the confidence of this recognition.
getData() - Method in class hhreco.recognition.Recognition
Return the data of this recognition.
getEccentricity() - Method in class hhreco.fragmentation.EllipseBasis
Return the ratio of the norms of the two axes of the ellipse
getElementAttributes(String) - Method in class hhreco.util.aelfred.XmlParser
Look up the attribute hash table for an element.
getElementContentModel(String) - Method in class hhreco.util.aelfred.XmlParser
Look up the content model of an element.
getElementContentType(String) - Method in class hhreco.util.aelfred.XmlParser
Look up the content type of an element.
getEllipticalPoints() - Method in class hhreco.fragmentation.EllipseBasis
Return the data points of the elliptical segment that approximates the given set of points.
getEntityNotationName(String) - Method in class hhreco.util.aelfred.XmlParser
Get the notation name associated with an NDATA entity.
getEntityPublicId(String) - Method in class hhreco.util.aelfred.XmlParser
Return an external entity's public identifier, if any.
getEntitySystemId(String) - Method in class hhreco.util.aelfred.XmlParser
Return an external entity's system identifier.
getEntityType(String) - Method in class hhreco.util.aelfred.XmlParser
Find the type of an entity.
getEntityValue(String) - Method in class hhreco.util.aelfred.XmlParser
Return the value of an internal entity.
getFeature(int) - Method in class hhreco.classification.FeatureSet
Return the i'th feature.
getFeatureCount() - Method in class hhreco.classification.FeatureSet
Return the number of features in the vector.
getFeatures() - Method in class hhreco.classification.FeatureSet
Return the feature vector.
getFitError() - Method in class hhreco.fragmentation.Basis
Return the fit error.
getFitsOnStroke(int) - Method in class hhreco.fragmentation.FitData
Return the bases on the specified stroke.
getHighestConfidence() - Method in class hhreco.classification.Classification
Return the highest confidence value.
getHighestConfidenceType() - Method in class hhreco.classification.Classification
Return the highest confidence type.
getHighestValueRecognition() - Method in class hhreco.recognition.RecognitionSet
Return the recognition object that has the highest value.
getID() - Method in class hhreco.recognition.Type
Return the string ID.
getIM() - Method in class hhreco.recognition.ZernikeMoments.Complex
Return the imaginary part.
getLine() - Method in class hhreco.fragmentation.LineBasis
Return the line segment used to approximate the given set of points.
getLine() - Method in class hhreco.util.aelfred.XmlException
Get the line number containing the error.
getLineNumber() - Method in class hhreco.util.aelfred.XmlParser
Return the current line number.
getLowestValueRecognition() - Method in class hhreco.recognition.RecognitionSet
Return the recognition object that has the lowest value.
getMagnitude() - Method in class hhreco.recognition.ZernikeMoments.Complex
Return the magnitude of this complex number.
getMajorAxis() - Method in class hhreco.fragmentation.EllipseBasis
 
getMaxNorm() - Method in class hhreco.fragmentation.EllipseBasis
Return the magnitude of the major axis.
getMeans() - Method in class hhreco.classification.DataRep
Return the mean vector.
getMessage() - Method in class hhreco.util.aelfred.XmlException
Get the error message from the parser.
getMidpoint() - Method in class hhreco.fragmentation.EllipseBasis
Return the mid point on the original stroke points
getMinNorm() - Method in class hhreco.fragmentation.EllipseBasis
Return the magnitude of the minor axis.
getMinorAxis() - Method in class hhreco.fragmentation.EllipseBasis
 
getName() - Method in interface hhreco.recognition.FeatureExtractor
Return the name of the feature extractor.
getName() - Method in class hhreco.recognition.ZernikeFE
Return the name of this feature extractor.
getNegativeExample(String, int) - Method in class hhreco.recognition.MSTrainingModel
Return the negative example at the specified index for the given type.
getNextUtf8Byte(int, int) - Method in class hhreco.util.aelfred.XmlParser
Return the next byte value in a UTF-8 sequence.
getNotationPublicId(String) - Method in class hhreco.util.aelfred.XmlParser
Look up the public identifier for a notation.
getNotationSystemId(String) - Method in class hhreco.util.aelfred.XmlParser
Look up the system identifier for a notation.
getNumEllipticalDataPoints() - Method in class hhreco.fragmentation.EllipseBasis
Return the number of data points used to represent the elliptical segment.
getNumPoints() - Method in class hhreco.fragmentation.Basis
Return the total number of original points.
getNumStrokes() - Method in class hhreco.fragmentation.FitData
Return the number of strokes of the original shape that this fitting approximates.
getOrder() - Method in class hhreco.recognition.ZernikeFE
Return the moment order.
getParams() - Method in class hhreco.fragmentation.Basis
Return the parameters of this basis.
getParent() - Method in class hhreco.recognition.Type
Return the parent of this type.
getPositiveExample(String, int) - Method in class hhreco.recognition.MSTrainingModel
Return the positive example at the specified index for the given type.
getRE() - Method in class hhreco.recognition.ZernikeMoments.Complex
Return the real part.
getRecognitionCount() - Method in class hhreco.recognition.RecognitionSet
Return the number of recognitions in this set.
getRecognitionOfType(Type) - Method in class hhreco.recognition.RecognitionSet
Return the recognition contained by this set with the given type, or null if it's not contained.
getSelectedSymbol() - Method in class hhreco.apps.FragmentApp.SCDisplay
Return the selected symbol in this class.
getShowBreakPoints() - Method in class hhreco.apps.FragmentApp.SD
 
getShowFilteredData() - Method in class hhreco.apps.FragmentApp.SD
 
getShowFilteredDataPoints() - Method in class hhreco.apps.FragmentApp.SD
 
getShowFits() - Method in class hhreco.apps.FragmentApp.SD
 
getShowOrigData() - Method in class hhreco.apps.FragmentApp.SD
 
getShowOrigDataPoints() - Method in class hhreco.apps.FragmentApp.SD
 
getSpacing() - Method in class hhreco.toolbox.InterpolateStrokeFilter
Return the spacing parameter.
getStds() - Method in class hhreco.classification.DataRep
Return the standard deviations of the feature components.
getStrokeIndex(int) - Method in class hhreco.fragmentation.FitData
Return the stroke index that the basis at the specified index corresponds to.
getSymbolCount() - Method in class hhreco.apps.FragmentApp.SCDisplay
 
getSymbolHeight() - Method in class hhreco.apps.FragmentApp.SD
 
getSymbolWidth() - Method in class hhreco.apps.FragmentApp.SD
 
getSymbols() - Method in class hhreco.apps.FragmentApp.SCDisplay
Return the symbols in this class.
getSystemId() - Method in class hhreco.util.aelfred.XmlException
Get the URI of the entity containing the error.
getTemplate() - Method in class hhreco.apps.FragmentApp.SD
 
getTemplate() - Method in class hhreco.fragmentation.FitData
Return the template of this fit.
getThreshDistance() - Method in class hhreco.toolbox.ApproximateStrokeFilter
Return the threshold distance.
getTimestamp(int) - Method in class hhreco.recognition.TimedStroke
Return the timestamp of the point at the given index.
getTotalFitError() - Method in class hhreco.fragmentation.FitData
Return the sum of the fit errors from all bases.
getType() - Method in class hhreco.apps.FragmentApp.SCDisplay
 
getType(int) - Method in class hhreco.classification.Classification
Return the i'th type.
getType() - Method in class hhreco.fragmentation.Basis
Return the type of this basis object.
getType() - Method in class hhreco.recognition.Recognition
Return the type of this recognition.
getType() - Method in class hhreco.recognition.SimpleData
Return the Type of this data.
getType() - Method in interface hhreco.recognition.TypedData
Return the uniquely identifying type associated with this piece of data.
getTypeCount() - Method in class hhreco.classification.Classification
Return the number of types in this classification.
getTypeCount() - Method in class hhreco.classification.TrainingSet
Return how many types are contained in this training set.
getTypeCount() - Method in class hhreco.recognition.MSTrainingModel
Return how many types are contained in this training model.
getTypeID() - Method in class hhreco.recognition.SimpleData
Return the string ID.
getVariances() - Method in class hhreco.classification.DataRep
Return the variances of the feature components.
getVertexCount() - Method in class hhreco.recognition.TimedStroke
Return the number of points in the stroke.
getX(int) - Method in class hhreco.recognition.TimedStroke
Return the x coordinate at the specified index.
getXvals() - Method in class hhreco.fragmentation.Basis
Return the X coordinates of the original points.
getY(int) - Method in class hhreco.recognition.TimedStroke
Return the y coordinate at the specified index.
getYvals() - Method in class hhreco.fragmentation.Basis
Return the Y coordinates of the original points.

H

HHRecognizer - class hhreco.recognition.HHRecognizer.
This is a general purpose recognizer in which feature extractors and the classifier can be user-specified.
HHRecognizer() - Constructor for class hhreco.recognition.HHRecognizer
Create a recognizer that uses the default Zernike Moments feature extractor and the default SVM classifier.
HHRecognizer(FeatureExtractor[]) - Constructor for class hhreco.recognition.HHRecognizer
Create a recognizer that uses the specified set of feature extractors and the default SVM classifier.
HHRecognizer(TrainableClassifier) - Constructor for class hhreco.recognition.HHRecognizer
Create a recognizer that uses the default Zernike Moments feature extractor and the specified classifier.
HHRecognizer(FeatureExtractor[], TrainableClassifier) - Constructor for class hhreco.recognition.HHRecognizer
Create a recognizer that uses the specified set of feature extractors and the classifier.
HandlerBase - class hhreco.util.aelfred.HandlerBase.
Convenience base class for AElfred handlers.
HandlerBase() - Constructor for class hhreco.util.aelfred.HandlerBase
 
handler - Variable in class hhreco.util.aelfred.XmlParser
 
hasNext() - Method in class hhreco.util.IteratorAdapter
 
hasNext() - Method in class hhreco.util.NullIterator
 
hashCode() - Method in class hhreco.recognition.Type
Return the hashCode of this object.
hhreco.apps - package hhreco.apps
This package contains applications built using hhreco classes.
hhreco.classification - package hhreco.classification
This package provides data structures such as feature sets, training sets, as well as a classification framework for facilitating pattern classification tasks.
hhreco.fragmentation - package hhreco.fragmentation
This package provides the utilities for decomposing symbols into simpler, perceptually-salient structures, line segments (L) and elliptical segments (E).
hhreco.recognition - package hhreco.recognition
Interfaces and core classes for doing multi-stroke symbol recognition.
hhreco.toolbox - package hhreco.toolbox
Stroke preprocessing routines.
hhreco.util - package hhreco.util
General utility classes that can be used by any of the packages in HHreco.
hhreco.util.aelfred - package hhreco.util.aelfred
This package contains the source of the Aelfred XML parser from Microstar.

I

INSETS - Static variable in class hhreco.apps.FragmentApp.SD
 
InterpolateStrokeFilter - class hhreco.toolbox.InterpolateStrokeFilter.
For every 2 consecutive points in a stroke, fill in with evenly spaced points until the distance in between any 2 consecutive points no longer exceeds the threshold distance.
InterpolateStrokeFilter() - Constructor for class hhreco.toolbox.InterpolateStrokeFilter
Create a InterpolateStrokeFilter with the default spacing.
InterpolateStrokeFilter(double) - Constructor for class hhreco.toolbox.InterpolateStrokeFilter
Create a InterpolateStrokeFilter with the specified spacing.
IteratorAdapter - class hhreco.util.IteratorAdapter.
An iterator that implements the Iterator, intended for subclassing so that you don't have to provide the remove() method all the time....
IteratorAdapter() - Constructor for class hhreco.util.IteratorAdapter
 
ignorableWhitespace(char[], int, int) - Method in class hhreco.util.aelfred.HandlerBase
Handle ignorable whitespace.
ignorableWhitespace(char[], int, int) - Method in interface hhreco.util.aelfred.XmlHandler
Ignorable whitespace.
init(String) - Method in class hhreco.recognition.SimpleData
Initilize the ID.
initializeVariables() - Method in class hhreco.util.aelfred.XmlParser
Re-initialize the variables for each parse.
intern(String) - Method in class hhreco.util.aelfred.XmlParser
Return an internalised version of a string.
intern(char[], int, int) - Method in class hhreco.util.aelfred.XmlParser
Create an internalised string from a character array.
interpolate(TimedStroke) - Static method in class hhreco.toolbox.InterpolateStrokeFilter
Interpolate the points in the given stroke using the default spacing value.
interpolate(TimedStroke, double) - Static method in class hhreco.toolbox.InterpolateStrokeFilter
Interpolate the points in the given stroke using the specified spacing value.
inverse(double[][], double[][], int) - Static method in class hhreco.fragmentation.FittingUtil
 
isIncremental() - Method in class hhreco.classification.KNNClassifier
Return whether this classifier is incremental, i.e.
isIncremental() - Method in class hhreco.classification.MMDClassifier
Return whether this classifier is incremental, i.e.
isIncremental() - Method in class hhreco.classification.SVMClassifier
Not an incremental classifier.
isIncremental() - Method in interface hhreco.classification.TrainableClassifier
Return whether this classifier is incremental, i.e.
isNativeType(String) - Static method in class hhreco.recognition.Type
Check if the specified type is in the record.
isWhitespace(char) - Method in class hhreco.util.aelfred.XmlParser
Test if a character is whitespace.

J

jacobi(double[][], int, double[], double[][], int) - Static method in class hhreco.fragmentation.FittingUtil
Computes the eigenvectors(v) and eigenvalues(d) of matrix 'a'.

K

KNNClassifier - class hhreco.classification.KNNClassifier.
This K-nearest neighbor classifier compares a test example with every example in the training set by computing the normalized Euclidean distance.
KNNClassifier() - Constructor for class hhreco.classification.KNNClassifier
 

L

LABEL_TAG - Static variable in class hhreco.recognition.MSTrainingParser
Indicate the label (positive or negative) for an example.
LineBasis - class hhreco.fragmentation.LineBasis.
A LineBasis is used to represent a set of points that are highly colinear.
LineBasis(double[], double[], int, double[], double, Line2D) - Constructor for class hhreco.fragmentation.LineBasis
Create a line basis and initialize its attributes.
lineFit(double[], double[], int) - Static method in class hhreco.fragmentation.Fragmenter
Use total regression to fit the best line to the given set of points.

M

MMDClassifier - class hhreco.classification.MMDClassifier.
Minimum distance classifier measures the normalized Euclidean distance between the test example and each of the training classes.
MMDClassifier() - Constructor for class hhreco.classification.MMDClassifier
 
MODEL_TAG - Static variable in class hhreco.recognition.MSTrainingParser
Indicate that the file contains a training model.
MSTrainingModel - class hhreco.recognition.MSTrainingModel.
MSTrainingModel (Multi-Stroke Training Model) is a data structure for storing training examples and their types.
MSTrainingModel() - Constructor for class hhreco.recognition.MSTrainingModel
Construct an empty training model.
MSTrainingParser - class hhreco.recognition.MSTrainingParser.
MSTrainingParser (Multi-Stroke Training Parser) reads in an XML file and parses it into a MSTrainingModel.
MSTrainingParser() - Constructor for class hhreco.recognition.MSTrainingParser
 
MSTrainingWriter - class hhreco.recognition.MSTrainingWriter.
MSTrainingWriter (Multi-Stroke Training Writer) takes a MSTrainingModel and outputs its content to an outputstream.
MSTrainingWriter() - Constructor for class hhreco.recognition.MSTrainingWriter
 
MergeFiles - class hhreco.apps.MergeFiles.
Merge given SML files into one single file.
MergeFiles() - Constructor for class hhreco.apps.MergeFiles
 
ModelParser - interface hhreco.util.ModelParser.
ModelParser is an interface that should be extended by application specific model parsers.
ModelWriter - interface hhreco.util.ModelWriter.
ModelWriter is an interface that should be extended by application specific model writers to write out data structures to an output stream.
MultiStrokeRecognizer - interface hhreco.recognition.MultiStrokeRecognizer.
A recognizer that processes a set of strokes and return the predictions in a RecognitionSet.
main(String[]) - Static method in class hhreco.apps.FragmentApp
 
main(String[]) - Static method in class hhreco.apps.MergeFiles
Usage: java hhreco.apps.MergeFiles in1 in2 ...
main(String[]) - Static method in class hhreco.apps.TestApp
 
main(String[]) - Static method in class hhreco.apps.TrainingApp
 
makeType(String) - Static method in class hhreco.recognition.Type
Instantiate a Type object based on the specified type name.

N

NAME_TAG - Static variable in class hhreco.recognition.MSTrainingParser
Indicate the name of a type.
NEGATIVE - Static variable in class hhreco.recognition.MSTrainingModel
Internal constant for the array slot of negative examples.
NO_RECOGNITION - Static variable in class hhreco.recognition.RecognitionSet
A constant that represents no recognition results.
NO_TYPE - Static variable in class hhreco.recognition.Type
A Type object that has no ID.
NUM_STROKE_TAG - Static variable in class hhreco.recognition.MSTrainingParser
Indicate the number of strokes in an example.
NullIterator - class hhreco.util.NullIterator.
An iterator over nothing.
NullIterator() - Constructor for class hhreco.util.NullIterator
 
negativeExampleCount(String) - Method in class hhreco.classification.TrainingSet
Return the number of negative examples for the given type.
negativeExampleCount(String) - Method in class hhreco.recognition.MSTrainingModel
Return the number of negative examples for the given type.
negativeExamples(String) - Method in class hhreco.classification.TrainingSet
An iterator over the negative examples for the given type.
negativeExamples(String) - Method in class hhreco.recognition.MSTrainingModel
An iterator over the negative examples for the given type.
next() - Method in class hhreco.util.IteratorAdapter
 
next() - Method in class hhreco.util.NullIterator
 
normScaling(TimedStroke[], double, double) - Static method in class hhreco.toolbox.Util
Scale the set of strokes uniformly (maintaining the aspect ratio).

P

POINTS_TAG - Static variable in class hhreco.recognition.MSTrainingParser
Indicate a set of points in a stroke.
POSITIVE - Static variable in class hhreco.recognition.MSTrainingModel
Internal constant for the array slot of positive examples.
PUBLIC_ID - Static variable in class hhreco.recognition.MSTrainingParser
The public identity of the sketch dtd file.
paint(Graphics) - Method in class hhreco.apps.FragmentApp.SD
 
paintStroke(Graphics, TimedStroke, boolean, double) - Method in class hhreco.apps.FragmentApp.SD
 
parse(Reader) - Method in class hhreco.recognition.MSTrainingParser
Create the full path string for the url and parses the file into a MSTrainingModel object.
parse(Reader) - Method in interface hhreco.util.ModelParser
Parse the data in the given charater stream into a data structure and return the data structure.
parse(String, String, String) - Method in class hhreco.util.aelfred.XmlParser
Parse an XML document from a URI.
parse(String, String, InputStream, String) - Method in class hhreco.util.aelfred.XmlParser
Parse an XML document from a byte stream.
parse(String, String, Reader) - Method in class hhreco.util.aelfred.XmlParser
Parse an XML document from a character stream.
parseAttDef(String) - Method in class hhreco.util.aelfred.XmlParser
Parse a single attribute definition.
parseAttlistDecl() - Method in class hhreco.util.aelfred.XmlParser
Parse an attribute list declaration.
parseAttribute(String) - Method in class hhreco.util.aelfred.XmlParser
Parse an attribute assignment.
parseCDSect() - Method in class hhreco.util.aelfred.XmlParser
Parse a CDATA marked section.
parseCharRef() - Method in class hhreco.util.aelfred.XmlParser
Read a character reference.
parseComment() - Method in class hhreco.util.aelfred.XmlParser
Skip a comment.
parseConditionalSect() - Method in class hhreco.util.aelfred.XmlParser
Parse a conditional section.
parseContent() - Method in class hhreco.util.aelfred.XmlParser
Parse the content of an element.
parseContentspec(String) - Method in class hhreco.util.aelfred.XmlParser
Content specification.
parseCp() - Method in class hhreco.util.aelfred.XmlParser
Parse a content particle.
parseDefault(String, String, int, String) - Method in class hhreco.util.aelfred.XmlParser
Parse the default value for an attribute.
parseDoctypedecl() - Method in class hhreco.util.aelfred.XmlParser
Parse a document type declaration.
parseDocument() - Method in class hhreco.util.aelfred.XmlParser
Parse an XML document.
parseETag() - Method in class hhreco.util.aelfred.XmlParser
Parse an end tag.
parseElement() - Method in class hhreco.util.aelfred.XmlParser
Parse an element, with its tags.
parseElementdecl() - Method in class hhreco.util.aelfred.XmlParser
Parse an element type declaration.
parseElements() - Method in class hhreco.util.aelfred.XmlParser
Parse an element-content model.
parseEntityDecl() - Method in class hhreco.util.aelfred.XmlParser
Parse an entity declaration.
parseEntityRef(boolean) - Method in class hhreco.util.aelfred.XmlParser
Parse a reference.
parseEnumeration() - Method in class hhreco.util.aelfred.XmlParser
Parse an enumeration.
parseEq() - Method in class hhreco.util.aelfred.XmlParser
Parse an equals sign surrounded by optional whitespace.
parseMarkupdecl() - Method in class hhreco.util.aelfred.XmlParser
Parse a markup declaration in the internal or external DTD subset.
parseMisc() - Method in class hhreco.util.aelfred.XmlParser
Parse miscellaneous markup outside the document element and DOCTYPE declaration.
parseMixed() - Method in class hhreco.util.aelfred.XmlParser
Parse mixed content.
parseNotationDecl() - Method in class hhreco.util.aelfred.XmlParser
Parse a notation declaration.
parseNotationType() - Method in class hhreco.util.aelfred.XmlParser
Parse a notation type for an attribute.
parsePCData() - Method in class hhreco.util.aelfred.XmlParser
Parse PCDATA.
parsePEReference(boolean) - Method in class hhreco.util.aelfred.XmlParser
Parse a parameter entity reference.
parsePI() - Method in class hhreco.util.aelfred.XmlParser
Parse a processing instruction and do a call-back.
parsePoints(String) - Static method in class hhreco.recognition.MSTrainingParser
val is a stream of numbers representing the points in a pen stroke.
parseProlog() - Method in class hhreco.util.aelfred.XmlParser
Parse the prolog of an XML document.
parseTextDecl(boolean) - Method in class hhreco.util.aelfred.XmlParser
Parse the Encoding PI.
parseUntil(String) - Method in class hhreco.util.aelfred.XmlParser
Read all data until we find the specified string.
parseWhitespace() - Method in class hhreco.util.aelfred.XmlParser
Parse whitespace characters, and leave them in the data buffer.
parseXMLDecl(boolean) - Method in class hhreco.util.aelfred.XmlParser
Parse the XML declaration.
pathLength(double[], double[], int) - Static method in class hhreco.toolbox.Util
Return the total pathlength by summing over the distance of consecutive points in the array.
pathLength(double[], double[], int, int) - Static method in class hhreco.toolbox.Util
calculate the path length starting from the startIndex to the endIndex (inclusive) of the points in the array.
pathLength(TimedStroke) - Static method in class hhreco.toolbox.Util
Return the path length of a stroke by enumerating over the points in the stroke and summing up the distances between every two consecutive points.
popInput() - Method in class hhreco.util.aelfred.XmlParser
Restore a previous input source.
positiveExampleCount(String) - Method in class hhreco.classification.TrainingSet
Return the number of positive examples for the given type.
positiveExampleCount(String) - Method in class hhreco.recognition.MSTrainingModel
Returns the number of positive examples for the given type.
positiveExamples(String) - Method in class hhreco.classification.TrainingSet
An iterator over the positive examples for the given type.
positiveExamples(String) - Method in class hhreco.recognition.MSTrainingModel
An iterator over the positive examples for the given type.
preprocess(TimedStroke[], ApproximateStrokeFilter, InterpolateStrokeFilter, AffineTransform) - Static method in class hhreco.recognition.HHRecognizer
This preprocessing routine normalizes the scaling and the translation of the given shape.
processingInstruction(String, String) - Method in class hhreco.util.aelfred.HandlerBase
Handle a processing instruction.
processingInstruction(String, String) - Method in interface hhreco.util.aelfred.XmlHandler
Processing instruction.
pushCharArray(String, char[], int, int) - Method in class hhreco.util.aelfred.XmlParser
Push a new internal input source.
pushInput(String) - Method in class hhreco.util.aelfred.XmlParser
Save the current input source onto the stack.
pushString(String, String) - Method in class hhreco.util.aelfred.XmlParser
This method pushes a string back onto input.
pushURL(String, String, String, Reader, InputStream, String) - Method in class hhreco.util.aelfred.XmlParser
Push a new external input source.

R

REJECT - Static variable in class hhreco.apps.TestApp
 
Recognition - class hhreco.recognition.Recognition.
An interpretation of a stroke or a set of strokes as a data/confidence pair.
Recognition(TypedData, double) - Constructor for class hhreco.recognition.Recognition
Construct a new recognition using the given data and confidence.
RecognitionSet - class hhreco.recognition.RecognitionSet.
The result of a recognizer's computations: a set of mutually exclusive interpretations of a stroke or a set of strokes, expressed by Recognition objects as typed data with associated values.
RecognitionSet() - Constructor for class hhreco.recognition.RecognitionSet
Construct an empty recognition set.
RecognitionSet(Recognition[]) - Constructor for class hhreco.recognition.RecognitionSet
Construct a recognition set that contains the given recognitions.
read8bitEncodingDeclaration() - Method in class hhreco.util.aelfred.XmlParser
Read just the encoding declaration (or XML declaration) at the start of an external entity.
readAttType() - Method in class hhreco.util.aelfred.XmlParser
Parse the attribute type.
readCh() - Method in class hhreco.util.aelfred.XmlParser
Read a single character from the readBuffer.
readDataChunk() - Method in class hhreco.util.aelfred.XmlParser
Read a chunk of data from an external input source.
readExternalIds(boolean) - Method in class hhreco.util.aelfred.XmlParser
Try reading external identifiers.
readLiteral(int) - Method in class hhreco.util.aelfred.XmlParser
Read a literal.
readNmtoken(boolean) - Method in class hhreco.util.aelfred.XmlParser
Read a name or name token.
recognitions() - Method in class hhreco.recognition.RecognitionSet
Return an iterator over the recognized types in sorted order from highest confidence to lowest.
remove() - Method in class hhreco.util.IteratorAdapter
 
removeExample(String, TimedStroke[], boolean) - Method in class hhreco.recognition.MSTrainingModel
Remove the specified example of the given type from this training model.
removeNegativeExample(String, TimedStroke[]) - Method in class hhreco.recognition.MSTrainingModel
Remove the specified negative example of the specified type from this training set.
removePositiveExample(String, TimedStroke[]) - Method in class hhreco.recognition.MSTrainingModel
Remove the specified positive example of the specified type from this training set.
removeRecognition(Recognition) - Method in class hhreco.recognition.RecognitionSet
Remove the given recognition from the set.
removeType(String) - Method in class hhreco.classification.TrainingSet
Remove the specified type from this training set.
removeType(String) - Method in class hhreco.recognition.MSTrainingModel
Remove the specified type from this training set.
require(String) - Method in class hhreco.util.aelfred.XmlParser
Require a string to appear, or throw an exception.
require(char) - Method in class hhreco.util.aelfred.XmlParser
Require a character to appear, or throw an exception.
requireWhitespace() - Method in class hhreco.util.aelfred.XmlParser
Require whitespace characters.
resolveEntity(String, String) - Method in class hhreco.recognition.MSTrainingParser
Resolve an external entity.
resolveEntity(String, String) - Method in class hhreco.util.aelfred.HandlerBase
Resolve an external entity.
resolveEntity(String, String) - Method in interface hhreco.util.aelfred.XmlHandler
Resolve an External Entity.

S

SELECTION_BORDER - Static variable in class hhreco.apps.FragmentApp.SD
 
SIZE - Static variable in class hhreco.recognition.HHRecognizer
 
STROKE_TAG - Static variable in class hhreco.recognition.MSTrainingParser
Indicate a stroke path.
SVMClassifier - class hhreco.classification.SVMClassifier.
This class uses libsvm, a SVM software library written in Java, to do SVM classification.
SVMClassifier(boolean) - Constructor for class hhreco.classification.SVMClassifier
Create a SVM Classifier with default parameters and specify whether the data needs to be scaled.
SVMClassifier(boolean, svm_parameter) - Constructor for class hhreco.classification.SVMClassifier
Create a SVM Classifier, specify whether the data needs to be scaled, and use the given set of parameters for the SVM classifier.
SYMBOL_HEIGHT - Static variable in class hhreco.apps.FragmentApp
 
SYMBOL_WIDTH - Static variable in class hhreco.apps.FragmentApp
 
SimpleData - class hhreco.recognition.SimpleData.
An instance of typed data that represents dynamic, user-defined types.
SimpleData() - Constructor for class hhreco.recognition.SimpleData
Create a SimpleData object without an ID.
SimpleData(String) - Constructor for class hhreco.recognition.SimpleData
Create a SimpleData object and initilize the ID.
StrokeFilter - class hhreco.toolbox.StrokeFilter.
An object which filters a pen stroke in order to reduce the complexity in the raw data points.
StrokeFilter() - Constructor for class hhreco.toolbox.StrokeFilter
 
StrokeRecognizer - interface hhreco.recognition.StrokeRecognizer.
A recognizer responds to changes in strokes and returns recognition sets (interpretations of the stroke or of some or all of the scene) based on these changes.
scale(FeatureSet) - Method in class hhreco.classification.SVMClassifier
Scale the given feature vector based on the scale obtained from the training set.
scale(TrainingSet, int, int) - Method in class hhreco.classification.SVMClassifier
Scale the feature values in the training set to be in the range of [min,max].
select() - Method in class hhreco.apps.FragmentApp.SD
 
sessionCompleted(TimedStroke[]) - Method in class hhreco.recognition.HHRecognizer
Perform recognition on the given shape.
sessionCompleted(TimedStroke[]) - Method in interface hhreco.recognition.MultiStrokeRecognizer
Perform recognition on a set of strokes and return the recognition result in a ReconitionSet.
setAttribute(String, String, int, String, String, int) - Method in class hhreco.util.aelfred.XmlParser
Register an attribute declaration for later retrieval.
setElement(String, int, String, Hashtable) - Method in class hhreco.util.aelfred.XmlParser
Register an element.
setEntity(String, int, String, String, String, String) - Method in class hhreco.util.aelfred.XmlParser
Register an entity declaration for later retrieval.
setExternalDataEntity(String, String, String, String) - Method in class hhreco.util.aelfred.XmlParser
Register an external data entity.
setExternalTextEntity(String, String, String) - Method in class hhreco.util.aelfred.XmlParser
Register an external text entity.
setFeature(int, double) - Method in class hhreco.classification.FeatureSet
Set the i'th feature to the specified value.
setFitError(double) - Method in class hhreco.fragmentation.Basis
Set the fit error.
setHandler(XmlHandler) - Method in class hhreco.util.aelfred.XmlParser
Set the handler that will receive parsing events.
setIM(double) - Method in class hhreco.recognition.ZernikeMoments.Complex
Set the imaginary part.
setInternalEntity(String, String) - Method in class hhreco.util.aelfred.XmlParser
Register an entity declaration for later retrieval.
setNotation(String, String, String) - Method in class hhreco.util.aelfred.XmlParser
Register a notation declaration for later retrieval.
setOrder(int) - Method in class hhreco.recognition.ZernikeFE
Set the moment order (appears as 'n' in the equations [1])
setRE(double) - Method in class hhreco.recognition.ZernikeMoments.Complex
Set the real part.
setSelectedSymbol(FragmentApp.SD) - Method in class hhreco.apps.FragmentApp.SCDisplay
Deselect the previous symbol and set the selection to be the specified symbol.
setShowBreakPoints(boolean) - Method in class hhreco.apps.FragmentApp.SCDisplay
 
setShowBreakPoints(boolean) - Method in class hhreco.apps.FragmentApp.SD
 
setShowFilteredData(boolean) - Method in class hhreco.apps.FragmentApp.SCDisplay
 
setShowFilteredData(boolean) - Method in class hhreco.apps.FragmentApp.SD
 
setShowFilteredDataPoints(boolean) - Method in class hhreco.apps.FragmentApp.SCDisplay
 
setShowFilteredDataPoints(boolean) - Method in class hhreco.apps.FragmentApp.SD
 
setShowFits(boolean) - Method in class hhreco.apps.FragmentApp.SCDisplay
 
setShowFits(boolean) - Method in class hhreco.apps.FragmentApp.SD
 
setShowOrigData(boolean) - Method in class hhreco.apps.FragmentApp.SCDisplay
 
setShowOrigData(boolean) - Method in class hhreco.apps.FragmentApp.SD
 
setShowOrigDataPoints(boolean) - Method in class hhreco.apps.FragmentApp.SCDisplay
 
setShowOrigDataPoints(boolean) - Method in class hhreco.apps.FragmentApp.SD
 
setSpacing(double) - Method in class hhreco.toolbox.InterpolateStrokeFilter
Set the spacing value for adding interpolated points.
setThreshDistance(double) - Method in class hhreco.toolbox.ApproximateStrokeFilter
Set the threshold distance of a point from a line segment.
skipUntil(String) - Method in class hhreco.util.aelfred.XmlParser
Skip all data until we find the specified string.
skipWhitespace() - Method in class hhreco.util.aelfred.XmlParser
Skip whitespace characters.
startDocument() - Method in class hhreco.util.aelfred.HandlerBase
Handle the start of the document.
startDocument() - Method in interface hhreco.util.aelfred.XmlHandler
Start the document.
startElement(String) - Method in class hhreco.recognition.MSTrainingParser
Handle the start of an element.
startElement(String) - Method in class hhreco.util.aelfred.HandlerBase
Handle the start of an element.
startElement(String) - Method in interface hhreco.util.aelfred.XmlHandler
Start an element.
startExternalEntity(String) - Method in class hhreco.util.aelfred.HandlerBase
Handle the start of an external entity.
startExternalEntity(String) - Method in interface hhreco.util.aelfred.XmlHandler
Begin an external entity.
strokeCompleted(TimedStroke) - Method in class hhreco.recognition.HHRecognizer
 
strokeCompleted(TimedStroke) - Method in interface hhreco.recognition.StrokeRecognizer
Invoked when a stroke is completed.
strokeModified(TimedStroke) - Method in class hhreco.recognition.HHRecognizer
 
strokeModified(TimedStroke) - Method in interface hhreco.recognition.StrokeRecognizer
Invoked when a stroke has been modified, for example, points have been added to the stroke.
strokeStarted(TimedStroke) - Method in class hhreco.recognition.HHRecognizer
 
strokeStarted(TimedStroke) - Method in interface hhreco.recognition.StrokeRecognizer
Invoked when a stroke starts.
strokesToArrays(TimedStroke[], double[][], double[][], int[]) - Static method in class hhreco.toolbox.Util
Store the stroke points in array forms.

T

TYPE - Static variable in class hhreco.recognition.SimpleData
 
TYPE_ELLIPSE - Static variable in class hhreco.fragmentation.Basis
Elliptical arc type
TYPE_LINE - Static variable in class hhreco.fragmentation.Basis
Line segment type
TYPE_TAG - Static variable in class hhreco.recognition.MSTrainingParser
Indicate a type in the training model.
TestApp - class hhreco.apps.TestApp.
An application that sets up a recognition system and uses it to recognize sketched symbols.
TestApp(String) - Constructor for class hhreco.apps.TestApp
Create a test application that trains the recognition system with the specified training file.
TimedStroke - class hhreco.recognition.TimedStroke.
TimedStroke is a collection of points taken in the duration of a mouse pressed event and a mouse released event.
TimedStroke() - Constructor for class hhreco.recognition.TimedStroke
Construct a timed stroke object with an empty stroke path.
TimedStroke(TimedStroke) - Constructor for class hhreco.recognition.TimedStroke
Copy constructor for efficient copying of TimedStroke
TimedStroke(int) - Constructor for class hhreco.recognition.TimedStroke
Construct a timed stroke object with an empty stroke path of the given initial size.
TrainableClassifier - interface hhreco.classification.TrainableClassifier.
This classifier trains on a data set and performs classification based on what it has seen.
TrainingApp - class hhreco.apps.TrainingApp.
A symbol training application allowing a user to create his or her own symbol training file.
TrainingApp(String, String) - Constructor for class hhreco.apps.TrainingApp
Create a training application window with the specified frame title, and the training examples are saved in a file named username.sml where username is as specified.
TrainingSet - class hhreco.classification.TrainingSet.
A TrainingSet contains a set of types, and for each type a corresponding set of positive and negative examples.
TrainingSet() - Constructor for class hhreco.classification.TrainingSet
Construct an empty training set.
Type - class hhreco.recognition.Type.
A unique identifier for the type of a piece of data that results from a recognition.
Type(Class, String) - Constructor for class hhreco.recognition.Type
Create a Type of the specified class and string ID.
TypedData - interface hhreco.recognition.TypedData.
Typed data refers to a piece of semantic data that results from a recognition process and has an associated type.
toString() - Method in class hhreco.classification.Classification
Return a string representation of this classification consisting of type and confidence pairs.
toString() - Method in class hhreco.classification.DataRep
The text representation of this class.
toString() - Method in class hhreco.classification.FeatureSet
Text representation of the feature vector.
toString() - Method in class hhreco.classification.TrainingSet
 
toString() - Method in class hhreco.fragmentation.Basis
Text representation of this basis including its type, parameters, and fit error.
toString() - Method in class hhreco.fragmentation.FitData
 
toString() - Method in class hhreco.recognition.MSTrainingModel
Text representation of this class containing information on the types and the number of positive and negative examples in the model.
toString() - Method in class hhreco.recognition.Recognition
Print the contents of this recognition.
toString() - Method in class hhreco.recognition.RecognitionSet
Return the text representation of the recognition set.
toString() - Method in class hhreco.recognition.SimpleData
Return the string ID.
toString() - Method in class hhreco.recognition.Type
Text representation of this Type.
toString() - Method in class hhreco.recognition.ZernikeMoments.Complex
Text representation of this complex number.
toggleShowBreakPoints() - Method in class hhreco.apps.FragmentApp.SD
 
toggleShowFilteredData() - Method in class hhreco.apps.FragmentApp.SD
 
toggleShowFilteredDataPoints() - Method in class hhreco.apps.FragmentApp.SD
 
toggleShowFits() - Method in class hhreco.apps.FragmentApp.SD
 
toggleShowOrigData() - Method in class hhreco.apps.FragmentApp.SD
 
toggleShowOrigDataPoints() - Method in class hhreco.apps.FragmentApp.SD
 
train(TrainingSet, int) - Method in class hhreco.classification.KNNClassifier
Train the classifier with a given training set.
train(TrainingSet, int) - Method in class hhreco.classification.MMDClassifier
Train the classifier with the given training set.
train(TrainingSet, int) - Method in class hhreco.classification.SVMClassifier
Convert TraininSet examples into libsvm data structure, build a svm_problem object for the training set, and call svm_train to compute the svm model.
train(TrainingSet, int) - Method in interface hhreco.classification.TrainableClassifier
Train the classifier with a given training set.
train(MSTrainingModel) - Method in class hhreco.recognition.HHRecognizer
Extract features from the training examples and train the classifier with them.
transform(AffineTransform) - Method in class hhreco.recognition.TimedStroke
Transform the polyline with the given transform.
translate(double, double) - Method in class hhreco.recognition.TimedStroke
Translate the polyline with the given distance.
tryEncoding(byte[], byte, byte, byte, byte) - Method in class hhreco.util.aelfred.XmlParser
Check for a four-byte signature.
tryEncoding(byte[], byte, byte) - Method in class hhreco.util.aelfred.XmlParser
Check for a two-byte signature.
tryEncodingDecl(boolean) - Method in class hhreco.util.aelfred.XmlParser
Check for an encoding declaration.
tryRead(char) - Method in class hhreco.util.aelfred.XmlParser
Return true if we can read the expected character.
tryRead(String) - Method in class hhreco.util.aelfred.XmlParser
Return true if we can read the expected string.
tryWhitespace() - Method in class hhreco.util.aelfred.XmlParser
Return true if we can read some whitespace.
types() - Method in class hhreco.classification.TrainingSet
An iterator over the types contained in this training set.
types() - Method in class hhreco.recognition.MSTrainingModel
An iterator over the types contained in this training model.

U

Util - class hhreco.toolbox.Util.
General utilities.
Util() - Constructor for class hhreco.toolbox.Util
 
unread(char) - Method in class hhreco.util.aelfred.XmlParser
Push a single character back onto the current input stream.
unread(char[], int) - Method in class hhreco.util.aelfred.XmlParser
Push a char array back onto the current input stream.

V

VERSION_TAG - Static variable in class hhreco.recognition.MSTrainingParser
Indicate the version of this training model.

W

writeExample(TimedStroke[], boolean, Writer) - Static method in class hhreco.recognition.MSTrainingWriter
Write the stroke information (x, y, timestamp) and its label (indicating either positive or negative example) to the character-output stream.
writeHeader(Writer) - Static method in class hhreco.recognition.MSTrainingWriter
Write header information to the character-output stream.
writeModel(Object, OutputStream) - Method in class hhreco.recognition.MSTrainingWriter
Write the training model to the output stream.
writeModel(Object, Writer) - Method in class hhreco.recognition.MSTrainingWriter
Write the training model to the character-output stream.
writeModel(Object, Writer) - Method in interface hhreco.util.ModelWriter
Write the given model to the character stream.
writeStroke(TimedStroke, Writer) - Static method in class hhreco.recognition.MSTrainingWriter
Write out the sequence of points in the stroke.

X

XmlException - exception hhreco.util.aelfred.XmlException.
Convenience exception class for reporting XML parsing errors.
XmlException(String, String, int, int) - Constructor for class hhreco.util.aelfred.XmlException
Construct a new XML parsing exception.
XmlHandler - interface hhreco.util.aelfred.XmlHandler.
XML Processing Interface.
XmlParser - class hhreco.util.aelfred.XmlParser.
Parse XML documents and return parse events through call-backs.
XmlParser() - Constructor for class hhreco.util.aelfred.XmlParser
Construct a new parser with no associated handler.

Z

ZernikeFE - class hhreco.recognition.ZernikeFE.
Compute Zernike moments of the specified order [1].
ZernikeFE() - Constructor for class hhreco.recognition.ZernikeFE
Create a Zernike feature extractor with the default order.
ZernikeFE(int) - Constructor for class hhreco.recognition.ZernikeFE
Create a Zernike feature extractor with the specified order.
ZernikeMoments - class hhreco.recognition.ZernikeMoments.
This class provides a set of methods for computing Zernike moments.
ZernikeMoments() - Constructor for class hhreco.recognition.ZernikeMoments
 
ZernikeMoments.Complex - class hhreco.recognition.ZernikeMoments.Complex.
Data structure for a complex number with real and imaginary parts.
ZernikeMoments.Complex() - Constructor for class hhreco.recognition.ZernikeMoments.Complex
Create a complex number with real and imaginary parts set to 0.
ZernikeMoments.Complex(double, double) - Constructor for class hhreco.recognition.ZernikeMoments.Complex
Create a complex number with the specified real and imaginary values.
zer_mmts(int, double[], double[], int, double, double, double, double) - Static method in class hhreco.recognition.ZernikeMoments
Return the set of Zernike's moments up to the specified order.
zer_mmts(int, double[], double[], int) - Static method in class hhreco.recognition.ZernikeMoments
 
zer_mom(double[], double[], int, int, int) - Static method in class hhreco.recognition.ZernikeMoments
Computes the width, height, and centroid of the shape, and call zer_mom(double[] xvals, double[] yvals, int npoints, double ww, double hh, double cx, double cy, int n, int m)
zer_mom(double[], double[], int, double, double, double, double, int, int) - Static method in class hhreco.recognition.ZernikeMoments
xvals and yvals are the coordinates of the shape.
zer_pol(int, int, double, double) - Static method in class hhreco.recognition.ZernikeMoments
zer_pol() computes the Zernike basis function V(n,m,x,y).
zer_pol_R(int, int, double, double) - Static method in class hhreco.recognition.ZernikeMoments
zer_pol_R() computes the radial polynomial, Rnm(p), in the definition of V(n,m,x,y).
zernikeMoments(TimedStroke[]) - Static method in class hhreco.recognition.ZernikeFE
Compute Zernike moments of the stroke.
zernikeMoments(TimedStroke[], int) - Static method in class hhreco.recognition.ZernikeFE
Compute Zernike moments of the specified order and return the magnitudes of the moments.

_

_controller - Variable in class hhreco.apps.TrainingApp
 
_curShape - Variable in class hhreco.apps.TrainingApp
 
_dialog - Variable in class hhreco.apps.FragmentApp
 
_fd - Variable in class hhreco.apps.FragmentApp.SD
 
_filename - Variable in class hhreco.apps.TrainingApp
 
_fragDisplay - Variable in class hhreco.apps.FragmentApp
 
_hasBeenSaved - Variable in class hhreco.apps.TrainingApp
 
_input - Variable in class hhreco.apps.TrainingApp
 
_msg - Variable in class hhreco.apps.TrainingApp
 
_n - Variable in class hhreco.classification.DataRep
The number of examples
_numEInput - Variable in class hhreco.apps.FragmentApp
 
_numLInput - Variable in class hhreco.apps.FragmentApp
 
_orig - Variable in class hhreco.apps.FragmentApp.SD
 
_scaleFactor - Variable in class hhreco.apps.FragmentApp.SD
 
_scaled - Variable in class hhreco.apps.FragmentApp.SD
 
_selected - Variable in class hhreco.apps.FragmentApp.SD
 
_shapes - Variable in class hhreco.apps.TrainingApp
 
_showBreakPoints - Variable in class hhreco.apps.FragmentApp.SD
 
_showBreakPointsCB - Variable in class hhreco.apps.FragmentApp
 
_showFilteredData - Variable in class hhreco.apps.FragmentApp.SD
 
_showFilteredDataPoints - Variable in class hhreco.apps.FragmentApp.SD
 
_showFits - Variable in class hhreco.apps.FragmentApp.SD
 
_showFitsCB - Variable in class hhreco.apps.FragmentApp
 
_showOrigData - Variable in class hhreco.apps.FragmentApp.SD
 
_showOrigDataCB - Variable in class hhreco.apps.FragmentApp
 
_showOrigDataPoints - Variable in class hhreco.apps.FragmentApp.SD
 
_showOrigDataPointsCB - Variable in class hhreco.apps.FragmentApp
 
_strokes - Variable in class hhreco.apps.FragmentApp.SD
 
_symbolHeight - Variable in class hhreco.apps.FragmentApp.SD
 
_symbolWidth - Variable in class hhreco.apps.FragmentApp.SD
 
_templateField - Variable in class hhreco.apps.FragmentApp
 
_twriter - Variable in class hhreco.apps.TrainingApp
 
_upperPanel - Variable in class hhreco.apps.FragmentApp
 
_username - Variable in class hhreco.apps.TrainingApp
 
_wholePanel - Variable in class hhreco.apps.FragmentApp
 

A B C D E F G H I J K L M N P R S T U V W X Z _