org.android.activityminer.logic.filter
Interface LowPassFilter

Package class diagram package LowPassFilter
All Known Implementing Classes:
AdaptiveLowPassFilter, ButterworthLowPassFilter, NullFilter

public interface LowPassFilter

Interface for low pass filters.


Method Summary
 void apply(List<Double> x, List<Double> y, List<Double> z, List<Long> ts)
          Does apply this filter to an accelerometer time series stream.
 double[] lowPass(double[] x, double[] y, long currentTs)
          The filter function.
 void reset()
          Does reset the filter
 void setCutOffFrequency(double cf)
          Setter for the cut-off frequency
 void updateConfiguration(RuntimeConfiguration config)
          Does update the filter settings by the given configuration.
 

Method Detail

lowPass

double[] lowPass(double[] x,
                 double[] y,
                 long currentTs)
The filter function.

Parameters:
x - the actual input signal
y - the last output signal
currentTs - the current time stamp
Returns:
the current output signal

apply

void apply(List<Double> x,
           List<Double> y,
           List<Double> z,
           List<Long> ts)
Does apply this filter to an accelerometer time series stream.

Parameters:
x - the x axis signal stream
y - the y axis signal stream
z - the z axis signal stream
ts - the time stamps

updateConfiguration

void updateConfiguration(RuntimeConfiguration config)
Does update the filter settings by the given configuration.

Parameters:
config - the configuration to update from.

reset

void reset()
Does reset the filter


setCutOffFrequency

void setCutOffFrequency(double cf)
Setter for the cut-off frequency

Parameters:
cf - the cut-off frequencyy