Class Algorithm

java.lang.Object
  extended by Algorithm
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
AlgorithmED, AlgorithmHLDA, AlgorithmKF, AlgorithmKMeans, AlgorithmLBG, AlgorithmLDA, AlgorithmLDA2, AlgorithmLDAPCA, AlgorithmLP, AlgorithmNN, AlgorithmPCA, AlgorithmPCA2, AlgorithmPF, AlgorithmRVM, AlgorithmSVM, AlgorithmUKF

public abstract class Algorithm
extends java.lang.Object
implements java.lang.Runnable

Base class for all pattern recognition algorithms


Constructor Summary
Algorithm()
           
 
Method Summary
 void computeMeans()
          Computes the means for each existing data set
 void disableControl()
          Disables the next and previous keys before beggining to execute a step.
 void enableControl()
          Enables the next and previous keys after the execution of a step.
abstract  boolean initialize()
          Initializes algorithm.
 boolean nextStep()
          Determines and executes next step of the algorithm in a new thread of execution.
 boolean prevStep()
          Determines and executes previous step of the algorithm in a new thread of execution.
abstract  void run()
          Implementation of run from the Runnable interface.
 void scaleToFitData()
          Scales the data axes to fit the data.
 boolean setDataPoints(DataPoints data_a)
          Initializes the data points.
 boolean setInputPanel(InputPanel in_panel_a)
          Initializes the input panel.
 boolean setOutputPanel(OutputPanel out_panel_a)
          Initializes the output panel.
 boolean setProcessBox(ProcessBox pro_box_a)
          Initializes the process box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Algorithm

public Algorithm()
Method Detail

nextStep

public boolean nextStep()
Determines and executes next step of the algorithm in a new thread of execution.

Returns:
Returns true if being initialized or step_index_d is -1 as initialized. Returns true if step_index_d does not equal step_count. Returns false if they are equal.

prevStep

public boolean prevStep()
Determines and executes previous step of the algorithm in a new thread of execution.

Returns:
Returns true if step_index_d is not equal to 0.

setOutputPanel

public boolean setOutputPanel(OutputPanel out_panel_a)
Initializes the output panel.

Parameters:
out_panel_a - output panel object
Returns:
Returns true
See Also:
OutputPanel

setInputPanel

public boolean setInputPanel(InputPanel in_panel_a)
Initializes the input panel.

Parameters:
in_panel_a - input panel object
Returns:
Returns true
See Also:
InputPanel

setProcessBox

public boolean setProcessBox(ProcessBox pro_box_a)
Initializes the process box.

Parameters:
pro_box_a - process box object
Returns:
true
See Also:
ProcessBox

setDataPoints

public boolean setDataPoints(DataPoints data_a)
Initializes the data points.

Parameters:
data_a - data points
Returns:
Returns true
See Also:
DataPoints

computeMeans

public void computeMeans()
Computes the means for each existing data set


scaleToFitData

public void scaleToFitData()
Scales the data axes to fit the data.


disableControl

public void disableControl()
Disables the next and previous keys before beggining to execute a step.


enableControl

public void enableControl()
Enables the next and previous keys after the execution of a step.


run

public abstract void run()
Implementation of run from the Runnable interface. This method should be overidden by inheriting classes

Specified by:
run in interface java.lang.Runnable

initialize

public abstract boolean initialize()
Initializes algorithm. this method should be overidden by inheriting classes

Returns:
Returns true