IdleState Class Reference
Filter for removing vectors based on their magnitude. More...
Inheritance diagram for IdleState:
Collaboration diagram for IdleState:
Public Member Functions | |
IdleState () | |
Creates the Filter with a default threshold of 1.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 their magnitude.
If a vector has a magnitude less than the threshold, it is discarded.
Constructor & Destructor Documentation
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.
Here is the call graph for this function:
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:
- "1.2" (default)
- "0.3"
- "0.0" (accept all vectors/discard nothing)
Implements Filter.
Here is the call graph for this function:
The documentation for this class was generated from the following file:
- /Users/dev/Documents/SVN brazos.cs.tcu.edu/trunk/FROG/src/frog/IdleState.java