FROG

FROG Recognizer of Gestures

Quantizer Interface Reference

Quantizer is an interface for classes that serve as data quantizers. More...

Inheritance diagram for Quantizer:

List of all members.

Public Member Functions

Vector< Accel3DgetDataSet ()
 Accessor for the data set utilized by this Quantizer.
int getType ()
 Accessor for the Quantizer type index.
void setDataSet (Vector< Accel3D > data)
 Sets the data set to use in this Quantizer.
int translate (Accel3D acc)
 Translates a 3D acceleration into its appropriate representative.
int size ()
 Returns the size of the Quantizer, which corresponds to the size of the image of the quantization mapping.
Vector< Accel3DgetDataSet ()
 Accessor for the data set utilized by this Quantizer.
int getType ()
 Accessor for the Quantizer type index.
void setDataSet (Vector< Accel3D > data)
 Sets the data set to use in this Quantizer.
int translate (Accel3D acc)
 Translates a 3D acceleration into its appropriate representative.
int size ()
 Returns the size of the Quantizer, which corresponds to the size of the image of the quantization mapping.

Static Public Attributes

static final int KMEANS = 0
 This is the Quantizer type index for Kmeans quantizers.
static final int NUM_TYPES_SUPPORTED = 1
 This is the number of Quantizer implementations currently supported by Quantizer.

Detailed Description

Quantizer is an interface for classes that serve as data quantizers.

That is, they serve to reduce the effective amount of information in a data set by algorithmically determining a small set of appropriate representatives to which the data items can be translated to. In particular, Quantizer deals with 3D acceleration data. A quantizer should be constructed with a data set with which to develop its "codebook."

Author:
Team Better Recognize

Member Function Documentation

Vector<Accel3D> getDataSet (  ) 

Accessor for the data set utilized by this Quantizer.

Returns:
the data set for the Quantizer

Implemented in Kmeans, and Kmeans.

Vector<Accel3D> getDataSet (  ) 

Accessor for the data set utilized by this Quantizer.

Returns:
the data set for the Quantizer

Implemented in Kmeans, and Kmeans.

int getType (  ) 

Accessor for the Quantizer type index.

Should return the value as specified in the Quantizer interface.

Returns:
the Quantizer type index.

Implemented in Kmeans, and Kmeans.

int getType (  ) 

Accessor for the Quantizer type index.

Should return the value as specified in the Quantizer interface.

Returns:
the Quantizer type index.

Implemented in Kmeans, and Kmeans.

void setDataSet ( Vector< Accel3D data  ) 

Sets the data set to use in this Quantizer.

Parameters:
data the data set to assign to this Quantizer

Implemented in Kmeans, and Kmeans.

void setDataSet ( Vector< Accel3D data  ) 

Sets the data set to use in this Quantizer.

Parameters:
data the data set to assign to this Quantizer

Implemented in Kmeans, and Kmeans.

int size (  ) 

Returns the size of the Quantizer, which corresponds to the size of the image of the quantization mapping.

That is, the size is the total number of representatives determined by this Quantizer for its data set.

Returns:
the size of the Quantizer.

Implemented in Kmeans, and Kmeans.

int size (  ) 

Returns the size of the Quantizer, which corresponds to the size of the image of the quantization mapping.

That is, the size is the total number of representatives determined by this Quantizer for its data set.

Returns:
the size of the Quantizer.

Implemented in Kmeans, and Kmeans.

int translate ( Accel3D  acc  ) 

Translates a 3D acceleration into its appropriate representative.

Parameters:
acc The acceleration vector to translate (quantize)
Returns:
the quantized value (an integer) which the Accel3D is mapped to in this Quantizer

Implemented in Kmeans, and Kmeans.

int translate ( Accel3D  acc  ) 

Translates a 3D acceleration into its appropriate representative.

Parameters:
acc The acceleration vector to translate (quantize)
Returns:
the quantized value (an integer) which the Accel3D is mapped to in this Quantizer

Implemented in Kmeans, and Kmeans.


Member Data Documentation

static final int KMEANS = 0 [static]

This is the Quantizer type index for Kmeans quantizers.

static final int NUM_TYPES_SUPPORTED = 1 [static]

This is the number of Quantizer implementations currently supported by Quantizer.


The documentation for this interface was generated from the following files:
  • /Users/dev/Documents/SVN brazos.cs.tcu.edu/trunk/KmeansTest/src/Quantizer.java
  • /Users/dev/Documents/SVN brazos.cs.tcu.edu/trunk/KmeansTestRandom/src/Quantizer.java
 All Classes Namespaces Files Functions Variables