twoRateMSE | R Documentation |
This function is part of a set of functions to fit and evaluate the two-rate model of motor learning.
twoRateMSE(par, schedule, reaches, checkStability = FALSE)
par |
A named numeric vector with the four model parameters (see twoRateModel). |
schedule |
A numeric vector of length N with the perturbation schedule. |
reaches |
A numeric vector of length N with reach deviations matching the perturbation schedule. |
checkStability |
Only stable solutions will be permitted. |
The 'par' argument is a named numeric vector that should have the following elements: - Ls: the slow learning rate - Lf: the fast learning rate - Rs: the slow retention rate - Rf: the fast retention rate
A float: the mean squared error between the total model output and the reach deviations.
# write example...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.