DirectorialEquivalence Class Reference
Filter for removing vectors based on the vectors that come before them. More...
Public Member Functions | |
DirectorialEquivalence () | |
Creates the Filter with a default threshold of 0.2. | |
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. |
Detailed Description
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 & Destructor Documentation
Creates the Filter with a default threshold of 0.2.
Member Function Documentation
Takes in a sample and returns either the unchanged sample or null depending on the Filter's criteria.
- Parameters:
-
acc data to be filtered out
Implements Filter.
String getDefaults | ( | ) |
String getName | ( | ) |
String getParameters | ( | ) |
Returns the current parameters in a comma-separated String of values.
The values are returned in exactly the same order and style that they would be passed in through the setup(String) method.
- Returns:
- the current parameter String for this Filter
Implements Filter.
void setup | ( | String | args | ) |
Takes only one value, a threshold.
Example parameter Strings:
- "0.2" (default)
- "1.2"
- "0.0" (accept all vectors/discard nothing)
Implements Filter.
The documentation for this class was generated from the following file:
- /Users/dev/Documents/SVN brazos.cs.tcu.edu/trunk/FROG/src/frog/DirectorialEquivalence.java