Back to Adaptive Vision Library website
You are here: Start » Function Reference » Matrix » ReversePCATransformation
ReversePCATransformation
Reverses PCA process. Can be used to transform data back to original feature space.
Syntax
void avl::ReversePCATransformation ( const avl::Matrix& inTransformedMatrix, const avl::PCAModel& inPCAModel, avl::Matrix& outMatrix )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inTransformedMatrix | const Matrix& | Data, that was earlier transformed by inPCAFeatureVector. | |
![]() |
inPCAModel | const PCAModel& | PCA Model used to create inTransformedMatrix. | |
![]() |
outMatrix | Matrix& | inTransformedMatrix transformed back to its original feature space. |
Errors
| Error type | Description |
|---|---|
| DomainError | Feature vector of inPCAModel and Transformed Data matrices dimensions do not correspond to each other. |
| DomainError | Malformed inPCAModel - uneven vector sizes! |
| DomainError | Malformed inPCAModel - MeanVector is not row-vector! |
| DomainError | Malformed inPCAModel - StandardDeviationVector is not row-vector! |
| DomainError | inMeanVector and inStandardDeviationVector have incorrect size for inTransformedMatrix provided! |


