interp_residuals: Interpolated residuals cost function

Description Usage Arguments

View source: R/cost_functions.R

Description

Cost function to be used during parameter estimation, quantifying the difference between a given model and the true data for a certain set of model parameters. The cost defined by this function is based on a sum of residuals over the datax values given Interpolation is used to create evenly spaced points as the input datax values may have a varying density of points thoughtout. The first derivatives with respect to each parameter can also be calculated.

Usage

1
interp_residuals(param, datax, datay, device_model)

Arguments

param

a list consisting of parameters for the model curve.

datax

a range of values over which the voltage curve is evaluated.

datay

the true voltage values for the datax values given.

device_model

the model voltage curve function.


csgillespie/voltagefit documentation built on May 14, 2019, 12:23 p.m.