Linear discriminant analysis algorithm.
More...
#include <LDA.hpp>
|
| | LDA (MatrixD data, MatrixD classes) |
| | Linear discriminant analysis algorithm. More...
|
| |
| void | fit () |
| |
| MatrixD | transform () |
| | Transforms the data matrix using the eigenvectors found by fit() More...
|
| |
Linear discriminant analysis algorithm.
Definition at line 19 of file LDA.hpp.
◆ LDA()
| LDA::LDA |
( |
MatrixD |
data, |
|
|
MatrixD |
classes |
|
) |
| |
|
inline |
Linear discriminant analysis algorithm.
- Parameters
-
| data | The matrix whose linear discriminants will be found |
| classes | Column vector containing the classes each row element in data belongs to |
Definition at line 28 of file LDA.hpp.
◆ fit()
◆ transform()
| MatrixD LDA::transform |
( |
| ) |
|
|
inline |
Transforms the data matrix using the eigenvectors found by fit()
- Returns
Definition at line 51 of file LDA.hpp.
◆ eigenvalues
◆ eigenvectors
| MatrixD LDA::eigenvectors |
|
private |
◆ transformedData
| MatrixD LDA::transformedData |
|
private |
The documentation for this class was generated from the following file: