|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectAlgorithm
AlgorithmLDAPCA
public class AlgorithmLDAPCA
Implements the combined LDA and PCA algorithm. The LDA is implemented first and then PCA is implemented.
| Constructor Summary | |
|---|---|
AlgorithmLDAPCA()
|
|
| Method Summary | |
|---|---|
void |
betweenClass(Matrix M)
Determines the between class scatter matrix for the class independent linear discrimination algorithm |
void |
computeDecisionRegions()
Computes the line of discrimination for the classification algorithms when the corresponding flags have been initialized |
void |
computeErrors()
Counts the data points in each set in error and displays them on the text message window |
void |
displayMatrices()
Display two matrices - covariance matrix and the transformation matrix in the text message window |
boolean |
initialize()
Overrides the initialize() method in the base class. |
void |
printMatrices()
Displays the caovariance and LDA transform data matrix |
void |
run()
Implementation of the run function from the Runnable interface. |
void |
transformLDA(DataPoints d,
Matrix S)
Transforms a given set of points to a new space using the class independent linear discrimination analysis algorithm |
void |
transformPCA()
Transforms a given set of points to a new space using the class independent principal component 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 |
|---|
public AlgorithmLDAPCA()
| Method Detail |
|---|
public boolean initialize()
initialize in class Algorithmpublic void run()
run in interface java.lang.Runnablerun in class Algorithmpublic void withinClass(Matrix M)
M - Matrix for within class scatter matrixMatrixpublic void betweenClass(Matrix M)
M - Matrix for storing between class scatter matrixMatrixpublic void displayMatrices()
public void printMatrices()
public void transformPCA()
public void transformLDA(DataPoints d,
Matrix S)
d - DataPoints to be transformedS - transformed matrixpublic void computeDecisionRegions()
public void computeErrors()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||