org.wiigee.filter
Class DirectionalEquivalenceFilter

java.lang.Object
  extended by org.wiigee.filter.Filter
      extended by org.wiigee.filter.DirectionalEquivalenceFilter

public class DirectionalEquivalenceFilter
extends Filter

This filter removes a vector, if it doesn't differ enough from the previously retrieved filter.


Constructor Summary
DirectionalEquivalenceFilter()
           
 
Method Summary
 double[] filterAlgorithm(double[] vector)
          A filter receives a triple of acceleration values within the variable 'vector'.
 double getSensivity()
           
 void reset()
           
 void setSensivity(double sensivity)
           
 
Methods inherited from class org.wiigee.filter.Filter
filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectionalEquivalenceFilter

public DirectionalEquivalenceFilter()
Method Detail

reset

public void reset()
Specified by:
reset in class Filter

filterAlgorithm

public double[] filterAlgorithm(double[] vector)
Description copied from class: Filter
A filter receives a triple of acceleration values within the variable 'vector'. It's encoded as vector[0]=x, vector[1]=y, vector[2]=z. This is not an object since the processing of the filter should be really fast, since every acceleration of the wiimote passes the filter.

Specified by:
filterAlgorithm in class Filter
Returns:

setSensivity

public void setSensivity(double sensivity)

getSensivity

public double getSensivity()