|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfrog.DirectorialEquivalence
public class DirectorialEquivalence
Filter for removing vectors based on the vectors that come before them. The filter works by performing the distance formula on the two vectors. If the resulting distance is less than the threshold, the vector is discarded.
| Constructor Summary | |
|---|---|
DirectorialEquivalence()
Creates the Filter with a default threshold of 0.2. |
|
| Method Summary | |
|---|---|
Accel3D |
filter(Accel3D acc)
Takes in a sample and returns either the unchanged sample or null depending on the Filter's criteria. |
String |
getDefaults()
Returns the default parameter String for this Filter. |
String |
getName()
Returns the name of this Filter. |
String |
getParameters()
Returns the current parameters in a comma-separated String of values. |
void |
setup(String args)
Takes only one value, a threshold. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectorialEquivalence()
| Method Detail |
|---|
public Accel3D filter(Accel3D acc)
Filter
filter in interface Filteracc - data to be filtered out
null if the filter removed this Accel3D.
Otherwise returns the original Accel3D unmodified.public String getDefaults()
Filter
getDefaults in interface Filterpublic String getName()
Filter
getName in interface Filterpublic String getParameters()
Filter
getParameters in interface Filterpublic void setup(String args)
setup in interface Filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||