FROG

FROG Recognizer of Gestures

DirectorialEquivalenceFilter Class Reference

This filter takes the magnitude of a vector and compares it to the last vector's magnitude. More...

Inheritance diagram for DirectorialEquivalenceFilter:
Collaboration diagram for DirectorialEquivalenceFilter:

List of all members.

Public Member Functions

double[] filter (final double[] vector)
 Discards vectors based on their similarity to the previous vector.
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 compares it to the last vector's magnitude.

If the difference does not surpass the given threshold, the vector is discarded.

Author:
Team Better Recognize

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 based on their similarity to the previous vector.

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:
 All Classes Namespaces Files Functions Variables