area_between_curves: Area between curves 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 the total area between the curves generated by linear interpolation on the model curve and true values, interpolated between the datax points given. The first derivatives with respect to each parameter can also be calculated.

Usage

1
area_between_curves(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.