Performs Principal Component Analysis on waveform data, either using extracted features or raw waveforms.
Value
A list of class "waveform_pca" containing:
- scores
PC scores (observations x components)
- loadings
PC loadings (features x components)
- variance_explained
Variance explained by each PC
- cumulative_variance
Cumulative variance
- center
Feature means
- scale
Feature SDs (if scaled)
References
van der Maaten L, Hinton G (2008). "Visualizing Data using t-SNE." Journal of Machine Learning Research, 9, 2579-2605.
Examples
# PCA on gait features
set.seed(123)
data <- matrix(rnorm(1000), nrow = 100, ncol = 10)
pca_result <- waveformPCA(data, method = "features")
plotPCAScatter(pca_result)