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