Main driver routines for finding the weighted explicit or implicit orthogonal distance regression (ODR) or ordinary linear or nonlinear least squares (OLS) solution.
Driver routine for finding the weighted explicit or implicit orthogonal distance regression (ODR) or ordinary linear or nonlinear least squares (OLS) solution.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
procedure(fcn_t) | :: | fcn |
User-supplied subroutine for evaluating the model. |
|||
integer, | intent(in) | :: | n |
Number of observations. |
||
integer, | intent(in) | :: | m |
Number of columns of data in the independent variable. |
||
integer, | intent(in) | :: | q |
Number of responses per observation. |
||
integer, | intent(in) | :: | np |
Number of function parameters. |
||
real(kind=wp), | intent(inout) | :: | beta(:) |
Function parameters. |
||
real(kind=wp), | intent(in) | :: | y(:,:) |
Dependent variable. |
||
real(kind=wp), | intent(in) | :: | x(:,:) |
Explanatory variable. |
||
real(kind=wp), | intent(inout), | optional | :: | delta(:,:) |
Error in the |
|
real(kind=wp), | intent(in), | optional, | target | :: | we(:,:,:) |
|
real(kind=wp), | intent(in), | optional, | target | :: | wd(:,:,:) |
|
integer, | intent(in), | optional, | target | :: | ifixb(:) |
Values designating whether the elements of |
integer, | intent(in), | optional, | target | :: | ifixx(:,:) |
Values designating whether the elements of |
integer, | intent(in), | optional | :: | job |
Variable controlling problem initialization and computational method. |
|
integer, | intent(in), | optional | :: | ndigit |
Number of accurate digits in the function results, as supplied by the user. |
|
real(kind=wp), | intent(in), | optional | :: | taufac |
Factor used to compute the initial trust region diameter. |
|
real(kind=wp), | intent(in), | optional | :: | sstol |
Sum-of-squares convergence stopping tolerance. |
|
real(kind=wp), | intent(in), | optional | :: | partol |
Parameter convergence stopping tolerance. |
|
integer, | intent(in), | optional | :: | maxit |
Maximum number of iterations allowed. |
|
integer, | intent(in), | optional | :: | iprint |
Print control variable. |
|
integer, | intent(in), | optional | :: | lunerr |
Logical unit number for error messages. Available options are:
|
|
integer, | intent(in), | optional | :: | lunrpt |
Logical unit number for computation reports. Available options are:
|
|
real(kind=wp), | intent(in), | optional, | target | :: | stpb(:) |
Relative step for computing finite difference derivatives with respect to |
real(kind=wp), | intent(in), | optional, | target | :: | stpd(:,:) |
Relative step for computing finite difference derivatives with respect to |
real(kind=wp), | intent(in), | optional, | target | :: | sclb(:) |
Scaling values for |
real(kind=wp), | intent(in), | optional, | target | :: | scld(:,:) |
Scaling values for |
real(kind=wp), | intent(inout), | optional, | target | :: | rwork(:) |
Real work space. |
integer, | intent(inout), | optional, | target | :: | iwork(:) |
Integer work space. |
integer, | intent(out), | optional | :: | info |
Variable designating why the computations were stopped. |
|
real(kind=wp), | intent(in), | optional, | target | :: | lower(:) |
Lower bound on |
real(kind=wp), | intent(in), | optional, | target | :: | upper(:) |
Upper bound on |
Calculate the dimensions of the workspace arrays.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | n |
Number of observations. |
||
integer, | intent(in) | :: | m |
Number of columns of data in the independent variable. |
||
integer, | intent(in) | :: | q |
Number of responses per observation. |
||
integer, | intent(in) | :: | np |
Number of function parameters. |
||
logical, | intent(in) | :: | isodr |
Variable designating whether the solution is by ODR ( |
||
integer, | intent(out) | :: | lrwork |
Length of |
||
integer, | intent(out) | :: | liwork |
Length of |