Decomposes a set of trials' muscle x time EMG into shared SPATIAL synergies (which muscles group together), shared TEMPORAL synergies (when they are active) and a per-trial activation matrix linking them (Delis et al. 2014).
Usage
spaceByTimeSynergy(
trials,
n_spatial,
n_temporal,
max_iter = 500L,
tol = 1e-06,
n_restart = 5L,
seed = NULL
)Arguments
- trials
A list of
muscle x timenon-negative matrices (one per trial), or a[muscle, time, trial]array.- n_spatial, n_temporal
Numbers of spatial and temporal synergies.
- max_iter, tol
Multiplicative-update iterations and convergence tolerance.
- n_restart
Random restarts (best kept; default 5).
- seed
Optional RNG seed.
Value
a spacetime_synergy: spatial (muscle x n_spatial), temporal
(time x n_temporal), activation (list of n_spatial x n_temporal per
trial), vaf, iterations.