Class AlgorithmLDA2

java.lang.Object
  extended by Algorithm
      extended by AlgorithmLDA2
All Implemented Interfaces:
java.lang.Runnable

public class AlgorithmLDA2
extends Algorithm

Implements the class dependent Linear Discriminant Algorithm


Constructor Summary
AlgorithmLDA2()
           
 
Method Summary
 void betweenClass1(Matrix M1, Matrix M2, Matrix M3, Matrix M4)
          Determines the between class scatter matrix for the class dependent linear discrimination algorithm
 void computeDecisionRegions()
          method computes the line of discrimination for class dependent LDA
 void computeErrors()
          Counts the data points in each set in error and displays them on the text message window
 boolean initialize()
          Overrides the initialize() method in the base class.
 void printMatrices()
          Display two matrices - covariance matrix and the transformation matrix in the text message window
 void run()
          Implementation of the run function from the Runnable interface.
 void transformLDA1(Matrix S1, Matrix S2, Matrix S3, Matrix S4)
          Transforms a given set of points to a new space using the class dependent linear discrimination analysis algorithm
 void withinClass(Matrix M)
          Determines the within class scatter matrix
 
Methods inherited from class Algorithm
computeMeans, disableControl, enableControl, nextStep, prevStep, scaleToFitData, setDataPoints, setInputPanel, setOutputPanel, setProcessBox
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlgorithmLDA2

public AlgorithmLDA2()
Method Detail

initialize

public boolean initialize()
Overrides the initialize() method in the base class. Initializes member data and prepares for execution of first step. This method "resets" the algorithm.

Specified by:
initialize in class Algorithm
Returns:
Returns true

run

public void run()
Implementation of the run function from the Runnable interface. Determines what the current step is and calls the appropriate method.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class Algorithm

transformLDA1

public void transformLDA1(Matrix S1,
                          Matrix S2,
                          Matrix S3,
                          Matrix S4)
Transforms a given set of points to a new space using the class dependent linear discrimination analysis algorithm

Parameters:
S1 - covariance matrix of the first class
S2 - covariance matrix of the second class
S3 - covariance matrix of the third class
S4 - covariance matrix of the fourth class
See Also:
Matrix

withinClass

public void withinClass(Matrix M)
Determines the within class scatter matrix

Parameters:
M - Matrix storing within class scatter matrix
See Also:
Matrix

computeDecisionRegions

public void computeDecisionRegions()
method computes the line of discrimination for class dependent LDA


betweenClass1

public void betweenClass1(Matrix M1,
                          Matrix M2,
                          Matrix M3,
                          Matrix M4)
Determines the between class scatter matrix for the class dependent linear discrimination algorithm

Parameters:
M1 - between class scatter matrix for the first class
M2 - between class scatter matrix for the second class
M3 - between class scatter matrix for the third class
M4 - between class scatter matrix for the fourth class

computeErrors

public void computeErrors()
Counts the data points in each set in error and displays them on the text message window


printMatrices

public void printMatrices()
Display two matrices - covariance matrix and the transformation matrix in the text message window