public class AlgorithmLDA2 extends Algorithm
Constructor and Description |
---|
AlgorithmLDA2() |
Modifier and Type | Method and Description |
---|---|
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
|
computeMeans, disableControl, enableControl, nextStep, prevStep, scaleToFitData, setDataPoints, setInputPanel, setOutputPanel, setProcessBox
public boolean initialize()
initialize
in class Algorithm
public void run()
public void transformLDA1(Matrix S1, Matrix S2, Matrix S3, Matrix S4)
S1
- covariance matrix of the first classS2
- covariance matrix of the second classS3
- covariance matrix of the third classS4
- covariance matrix of the fourth classMatrix
public void withinClass(Matrix M)
M
- Matrix storing within class scatter matrixMatrix
public void computeDecisionRegions()
public void betweenClass1(Matrix M1, Matrix M2, Matrix M3, Matrix M4)
M1
- between class scatter matrix for the first classM2
- between class scatter matrix for the second classM3
- between class scatter matrix for the third classM4
- between class scatter matrix for the fourth classpublic void computeErrors()
public void printMatrices()