spectrochempy.PCA.reconstruct

PCA.reconstruct(n_pc=None)[source]

Transform data back to the original space using n_pc PC’s.

The following matrice operation is performed : \(X' = S'.L'^T\) where S’=S[:, n_pc] and L=L[:, n_pc].

Parameters

n_pc (int, optional) – The number of PC to use for the reconstruction.

Returns

|NDDataset| – The reconstructed dataset based on n_pc principal components.