org.wiigee.filter
Class LowPassFilter

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

public class LowPassFilter
extends Filter

This filter removes every acceleration that happens fast or suddenly (like e.g. a short hit). Remember: It _passes_ acceleration with a slight variety.


Constructor Summary
LowPassFilter()
           
LowPassFilter(double factor)
           
 
Method Summary
 double[] filterAlgorithm(double[] vector)
          A filter receives a triple of acceleration values within the variable 'vector'.
 void reset()
           
 
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

LowPassFilter

public LowPassFilter()

LowPassFilter

public LowPassFilter(double factor)
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: