Back to Adaptive Vision Library website

You are here: Start » Function Reference » Data Classification » Principal Component Analysis » ReversePCATransform

ReversePCATransform


Header: AVL.h
Namespace: avl
Module: FoundationPro

Reverses Principal Component Analysis (PCA) process. Can be used to transform data back to original feature space.

Syntax

C++
C#
 
void avl::ReversePCATransform
(
	const avl::Matrix& inTransformedMatrix,
	const avl::PCAModel& inPCAModel,
	avl::Matrix& outMatrix
)

Parameters

Name Type Default Description
inTransformedMatrix const Matrix& Data that was transformed earlier.
inPCAModel const PCAModel& PCA model used to create inTransformedMatrix.
outMatrix Matrix& inTransformedMatrix transformed back to its original feature space.

Errors

List of possible exceptions:

Error type Description
DomainError Feature vector of inPCAModel and Transformed Data matrices dimensions do not correspond to each other in ReversePCATransform.
DomainError inMeanVector and inStandardDeviationVector have incorrect size for inTransformedMatrix provided in ReversePCATransform.
DomainError Malformed inPCAModel - StandardDeviationVector is not row-vector in ReversePCATransform.
DomainError Malformed inPCAModel - MeanVector is not row-vector in ReversePCATransform.
DomainError Malformed inPCAModel - uneven vector sizes in ReversePCATransform.