intan.decomposition package¶
Decomposition methods for EMG, including PCA and constrained ICA utilities.
- pca(X, n_components=15, variance_threshold=0.95, show_plot=False, verbose=False)[source]¶
Implements PCA on a dataset with the number of components specified.
- Parameters:
X – Input data of shape (samples, channels)
n_components – Number of components to keep.
- Returns:
Reconstructed data using the first k components. n_pca_95: Number of components needed to reach 95% variance.
- Return type:
X_reconstructed_k
- CFICA2(emg_data, param=None, Mu=None)[source]¶
Python version of CFICA2: Kernel and Correlation Constrained FastICA for HD-EMG