Goal-Equivalent Manifold (GEM) decomposition for a scalar goal
Source:R/motor-variability-ucm.R
goalEquivalentManifold.RdThe scalar-goal special case of UCM (Cusumano & Cesari 2006): given the gradient of a scalar goal function, split the execution variability into goal-equivalent (along the level set – does not change the goal) and non-goal-equivalent (along the gradient – changes it), and report the motor-equivalent ratio.
Arguments
- execution
An
N x mmatrix of execution/body variables across trials.- goal_gradient
Length-
mgradient of the goal function at the mean (the direction in which the goal changes fastest). Provide this, orgoal.- goal
Optional scalar goal function
R^m -> R; its gradient is computed numerically at the mean whengoal_gradientis not given.
Value
a gem_result list: gev (goal-equivalent variance, along the GEM),
ngev (non-goal-equivalent variance, along the gradient), me_ratio
(gev / ngev, > 1 = variability channelled into the goal-irrelevant
direction), log_me_ratio.