E02ACF calculates a minimax polynomial fit to a set of data points.
Given a set of data points
, for
, E02ACF uses the exchange algorithm to compute an
th-order polynomial
such that
is a minimum.
The routine also returns a number whose absolute value is the final reference deviation (see
Section 6). The routine is an adaptation of
Boothroyd (1967).
- 1: – REAL (KIND=nag_wp) arrayInput
-
On entry: the values of the coordinates,
, for .
Constraint:
.
- 2: – REAL (KIND=nag_wp) arrayInput
-
On entry: the values of the coordinates,
, for .
- 3: – INTEGERInput
-
On entry: the number of data points.
- 4: – REAL (KIND=nag_wp) arrayOutput
-
On exit: the coefficients
of the final polynomial, for .
- 5: – INTEGERInput
-
On entry: , where is the order of the polynomial to be found.
Constraint:
.
- 6: – REAL (KIND=nag_wp)Output
-
On exit: the final reference deviation (see
Section 6).
If an error is detected in an input parameter E02ACF will act as if a soft noisy exit has been requested (see
Section 3.3.4 in the Essential Introduction).
This is wholly dependent on the given data points.
E02ACF is not threaded by NAG in any implementation.
E02ACF makes calls to BLAS and/or LAPACK routines, which may be threaded within the vendor library used by this implementation. Consult the documentation for the vendor library for further information.
Please consult the
X06 Chapter Introduction for information on how to control and interrogate the OpenMP environment used within this routine. Please also consult the
Users' Note for your implementation for any additional implementation-specific information.
None.