IdleStateFilter Class Reference
This filter takes the magnitude of a vector and checks it against a given threshold
.
More...
Inheritance diagram for IdleStateFilter:
Collaboration diagram for IdleStateFilter:
Public Member Functions | |
double[] | filter (final double[] vector) |
Discards vectors with a magnitude less than that of the threshold. | |
void | setup (String args) |
Sets the Threshold for this filter. | |
double[] | filter (double[] sample) |
Takes in a sample and returns either the unchanged sample or null depending on the Filter's criteria. | |
Static Package Attributes | |
static final int | X = 0 |
static final int | Y = 1 |
static final int | Z = 2 |
Detailed Description
This filter takes the magnitude of a vector and checks it against a given threshold
.
If the magnitude is less than the threshold, this vector is discarded.
Member Function Documentation
double [] filter | ( | double[] | sample | ) | [inherited] |
Takes in a sample and returns either the unchanged sample or null depending on the Filter's criteria.
- Parameters:
-
sample data to be filtered out
- Returns:
null
if the filter removed this sample. Otherwise returns the original sample unmodified.
double [] filter | ( | final double[] | vector | ) |
Discards vectors with a magnitude less than that of the threshold.
void setup | ( | String | args | ) |
Sets the Threshold for this filter.
The setup for this Filter must be a String containing a single floating point value (i.e. must pass the constraints of Double#parseDouble(String).
Implements Filter.
Member Data Documentation
final int X = 0 [static, package, inherited] |
final int Y = 1 [static, package, inherited] |
final int Z = 2 [static, package, inherited] |
The documentation for this class was generated from the following file:
- /Users/dev/Documents/SVN brazos.cs.tcu.edu/trunk/FROG SPOT/src/frog/plugin/spot/onspot/IdleStateFilter.java