public class AlgorithmLDAPCA extends Algorithm
Constructor and Description |
---|
AlgorithmLDAPCA() |
Modifier and Type | Method and Description |
---|---|
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
|
computeMeans, disableControl, enableControl, nextStep, prevStep, scaleToFitData, setDataPoints, setInputPanel, setOutputPanel, setProcessBox
public boolean initialize()
initialize
in class Algorithm
public void run()
public void withinClass(Matrix M)
M
- Matrix for within class scatter matrixMatrix
public void betweenClass(Matrix M)
M
- Matrix for storing between class scatter matrixMatrix
public 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()