curve_fit {math} |
R Documentation |
Use non-linear least squares to fit a function, f, to data.
Description
Assumes ydata = f(xdata, args) + eps
.
Usage
curve_fit(f, xdata, ydata, ...);
Arguments
f
The model function, f(x, …). It must take the independent variable
as the first argument and the parameters to fit as separate remaining arguments.
xdata
The independent variable where the data is measured. Should usually
be an M-length sequence or an (k,M)-shaped array for functions with k predictors,
and each element should be float convertible if it is an array like object.
ydata
The dependent data, a length M array - nominally f(xdata, ...).
args
arguments to fit in the given function `f`. [as list]
env
[as Environment]
Details
Authors
sciBASIC.NET
Value
this function returns data object of type double.
clr value class
Examples
[Package
math version 5.0.1.2389
Index]