|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Quantizer
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."
| Field Summary | |
|---|---|
static int |
KMEANS
This is the Quantizer type index for Kmeans quantizers. |
static int |
NUM_TYPES_SUPPORTED
This is the number of Quantizer implementations currently supported by Quantizer |
| Method Summary | |
|---|---|
Vector<Accel3D> |
getDataSet()
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 |
size()
Returns the size of the Quantizer, which corresponds to the size of the image of the quantization mapping. |
int |
translate(Accel3D acc)
Translates a 3D acceleration into its appropriate representative. |
| Field Detail |
|---|
static final int KMEANS
static final int NUM_TYPES_SUPPORTED
| Method Detail |
|---|
Vector<Accel3D> getDataSet()
int getType()
void setDataSet(Vector<Accel3D> data)
data - the data set to assign to this Quantizerint translate(Accel3D acc)
acc - The acceleration vector to translate (quantize)
int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||