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.
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.
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.

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

int getHMMStates | ( | ) |
Returns the number of states for the HMM.
- Returns:
- number of HMM states to be used

double getHMMThresholdPercent | ( | ) |
Returns the threshold for the HMM.
- Returns:
- the HMM threshold to be used

double getKMeansThreshold | ( | ) |
Returns the K-Means threshold for the Quantizer.
- Returns:
- the K-Means threshold to be used

int getKValue | ( | ) |
Returns the number of K-Means centers for the Quantizer.
- Returns:
- the number of K-Means centers to be used

int getSelection | ( | ) |
Determines whether the user has selected to Train or to Cancel.
- Returns:
- value will either be TRAIN_SELECTION or CANCEL_SELECTION

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:
- /Users/dev/Documents/SVN brazos.cs.tcu.edu/trunk/FROG/src/frog/gui/TrainingParametersDialog.java