FROG

FROG Recognizer of Gestures

TrainingParametersDialog Class Reference

Dialog for choosing gesture training settings such as how to model the gesture and what thresholds to use. More...

Inherits java::awt::event::ActionListener.

List of all members.

Public Member Functions

 TrainingParametersDialog (GestureHMM gm)
 Creates a new TrainingParametersDialog with the specified GestureHMM to fill in the current settings on the GUI.
boolean doKMeansPP ()
 Returns whether or not the K-Means++ algorithm should be used.
int getHMMStates ()
 Returns the number of states for the HMM.
double getHMMThresholdPercent ()
 Returns the threshold for the HMM.
double getKMeansThreshold ()
 Returns the K-Means threshold for the Quantizer.
int getKValue ()
 Returns the number of K-Means centers for the Quantizer.
int getSelection ()
 Determines whether the user has selected to Train or to Cancel.
void actionPerformed (ActionEvent e)
 If the user pressed OK, the dialog will validate the data and then return, disposing the dialog.
void itemStateChanged (ItemEvent e)
 If K-Means is selected, the user must choose a K-Value from a JComboBox.

Static Public Attributes

static final int CANCEL_SELECTION = 0
 User pressed the "Cancel" button.
static final int TRAIN_SELECTION = 1
 User pressed the "Train" button.

Detailed Description

Dialog for choosing gesture training settings such as how to model the gesture and what thresholds to use.

Author:
Team Better Recognize

Constructor & Destructor Documentation

Creates a new TrainingParametersDialog with the specified GestureHMM to fill in the current settings on the GUI.

Parameters:
gm the GestureHMM to be modified.

Here is the call graph for this function:


Member Function Documentation

void actionPerformed ( ActionEvent  e  ) 

If the user pressed OK, the dialog will validate the data and then return, disposing the dialog.

If there was a problem with the data, the window will remain open and a dialog will appear.

If the user pressed Cancel, the dialog will return and dispose.

boolean doKMeansPP (  ) 

Returns whether or not the K-Means++ algorithm should be used.

Returns:
true if K-Means++ should be used, false otherwise

Here is the caller graph for this function:

int getHMMStates (  ) 

Returns the number of states for the HMM.

Returns:
number of HMM states to be used

Here is the caller graph for this function:

double getHMMThresholdPercent (  ) 

Returns the threshold for the HMM.

Returns:
the HMM threshold to be used

Here is the caller graph for this function:

double getKMeansThreshold (  ) 

Returns the K-Means threshold for the Quantizer.

Returns:
the K-Means threshold to be used

Here is the caller graph for this function:

int getKValue (  ) 

Returns the number of K-Means centers for the Quantizer.

Returns:
the number of K-Means centers to be used

Here is the caller graph for this function:

int getSelection (  ) 

Determines whether the user has selected to Train or to Cancel.

Returns:
value will either be TRAIN_SELECTION or CANCEL_SELECTION

Here is the caller graph for this function:

void itemStateChanged ( ItemEvent  e  ) 

If K-Means is selected, the user must choose a K-Value from a JComboBox.

If K-Means++ is selected, the user will be able to enter a K-Value by JTextField.


Member Data Documentation

final int CANCEL_SELECTION = 0 [static]

User pressed the "Cancel" button.

final int TRAIN_SELECTION = 1 [static]

User pressed the "Train" button.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables