org.wiigee.filter
Class HighPassFilter

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

public class HighPassFilter
extends Filter

This filter removes every acceleration that happens slowly or steadily (like e.g. gravity). Remember: It _passes_ acceleration with a big variety.


Constructor Summary
HighPassFilter()
           
HighPassFilter(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

HighPassFilter

public HighPassFilter()

HighPassFilter

public HighPassFilter(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: