|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.android.activityminer.logic.filter.NullFilter
public final class NullFilter
Implementation of a null filter, which does just return the original signal.
| Field Summary | |
|---|---|
static NullFilter |
NULLFILTER
Global singleton null filter instance |
| Constructor Summary | |
|---|---|
private |
NullFilter()
Constructor |
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final NullFilter NULLFILTER
| Constructor Detail |
|---|
private NullFilter()
| Method Detail |
|---|
public final double[] lowPass(double[] x,
double[] y,
long currentTs)
LowPassFilter
lowPass in interface LowPassFilterx - the actual input signaly - the last output signalcurrentTs - the current time stamp
public final void apply(List<Double> x,
List<Double> y,
List<Double> z,
List<Long> ts)
LowPassFilter
apply in interface LowPassFilterx - the x axis signal streamy - the y axis signal streamz - the z axis signal streamts - the time stampspublic final void updateConfiguration(RuntimeConfiguration config)
LowPassFilter
updateConfiguration in interface LowPassFilterconfig - the configuration to update from.public void reset()
LowPassFilter
reset in interface LowPassFilterpublic void setCutOffFrequency(double cf)
LowPassFilter
setCutOffFrequency in interface LowPassFiltercf - the cut-off frequencyy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||