cogpy.decomposition.pca
ERP-PCA decomposition of neural signals.
Provides varimax-rotated PCA for spatio-spectral decomposition of ECoG data.
The erpPCA class follows the scikit-learn estimator API (fit / transform).
Functions
|
Pairwise similarity matrix between factors of two SpatSpec instances. |
|
Convert fitted erpPCA + spectrogram into (ldx, scx) DataArrays. |
|
Reshape rotated loadings into an xr.DataArray |
|
Wrap factor scores into an xr.DataArray |
|
Run ERP-PCA: covariance → eigen → varimax → sort. |
|
Compute inverse projection from loading DataArray |
|
Build an (nrec, nrec) array of (nfac, nfac) similarity matrices. |
|
|
|
Project data onto pre-computed inverse projection. |
|
|
|
|
|
|
|
Correlation-based similarity between two SpatSpec factors. |
|
Simplicity criterion for varimax columns. |
|
|
|
Create an erpPCA estimator from a SpatSpecDecomposition. |
|
|
|
Varimax rotation (4M algorithm). |
Classes
|
Varimax-rotated PCA estimator for ECoG spatio-spectral data. |