Least squares, linear and non linear
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical(kind=I4), | private, | parameter | :: | verbose | = | .false. |
Function that returns the parameters of a function that approximates a data set. The parameters determination is achieved by non linear least squares approximation.
| Type | Intent | Optional | Attributes | Name | |||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| integer(kind=I4), | intent(in) | :: | nb_var |
number of parameters to be determined |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| integer(kind=I4), | intent(in) | :: | nb_pts |
number of points for function evaluation |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| real(kind=R8), | intent(in), | dimension(1:nb_pts) | :: | hij |
vector of evaluation points |
||||||||||||||||||||||||||||||||||||||||||||||||||
| real(kind=R8), | intent(in), | dimension(1:nb_pts, 1:2) | :: | vec_xy |
x and y coordinates of evaluation points |
||||||||||||||||||||||||||||||||||||||||||||||||||
| real(kind=R8), | intent(inout), | dimension(1:nb_var) | :: | beta |
parameters vector |
||||||||||||||||||||||||||||||||||||||||||||||||||
private function f(xi, yi, var, nb_var, typ)Arguments
Return Value real(kind=r8) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
private function df(xi, yi, var, nb_var, ivar, typ)Arguments
Return Value real(kind=r8) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| character(len=*), | intent(in) | :: | typ |
kind of function used |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| real(kind=R8), | intent(in) | :: | eps |
stop criterion |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| real(kind=R8), | intent(in) | :: | relax |
relaxation parameter |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| integer(kind=I4), | intent(in) | :: | nb_var_der |
number of derivatives |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| integer(kind=I4), | intent(out) | :: | info |
information from Cholesky resolution |
|||||||||||||||||||||||||||||||||||||||||||||||||||
Function that returns the parameters of a function that approximates a data set. The parameters determination is achieved by linear least squares approximation.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=I4), | intent(in) | :: | nb_var |
number of parameters to be determined |
||
| integer(kind=I4), | intent(in) | :: | nb_pts |
number of points for function evaluation |
||
| real(kind=R8), | intent(in), | dimension(1:nb_pts) | :: | hij |
vector of evaluation points |
|
| real(kind=R8), | intent(out), | dimension(1:nb_var) | :: | beta |
parameters vector |
|
| real(kind=R8), | intent(in), | dimension(1:nb_pts, 1:nb_var) | :: | Jf |
Jacobian |