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: X(N) – REAL (KIND=nag_wp) arrayInput
On entry: the values of the coordinates,
, for .
Constraint:
.
- 2: Y(N) – REAL (KIND=nag_wp) arrayInput
On entry: the values of the coordinates,
, for .
- 3: N – INTEGERInput
On entry: the number of data points.
- 4: A(M1) – REAL (KIND=nag_wp) arrayOutput
On exit: the coefficients
of the final polynomial, for .
- 5: M1 – INTEGERInput
On entry: , where is the order of the polynomial to be found.
Constraint:
.
- 6: REF – 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.
None.