simpleRateMSE: Get the MSE for how well a simple learning rate model fits...

View source: R/simpleLearningRates.R

simpleRateMSER Documentation

Get the MSE for how well a simple learning rate model fits reaches.

Description

This function is part of a set of functions to fit and evaluate a simple learning rate model of motor learning.

Usage

simpleRateMSE(par, schedule, reaches)

Arguments

par

A named numeric vector with the model parameter (see simpleRateModel).

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.

Details

The 'par' argument is a named numeric vector that should have the following element: - LR: the learning rate

Value

A float: the mean squared error between the total model output and the reach deviations.

Examples

?

thartbm/SMCL documentation built on Oct. 23, 2022, 5:17 a.m.