View source: R/cost_functions.R
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.
1 | area_between_curves(param, datax, datay, device_model)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.