Author(s): K.S. Kölbig | Library: MATHLIB |
Submitter: | Submitted: 01.12.1994 |
Language: Fortran | Revised: |
Subroutine subprograms RLSQPM and DLSQPM fit a polynomial
of degree m to n equally-weighted data points ( ). The calculated coefficients are such that
Subroutine subprograms RLSQP1 and DLSQP1 fit a straight line to n such points.
Subroutine subprograms RLSQP2 and DLSQP2 fit a parabola to n such points.
An estimate of the standard deviation is calculated.
On CDC and Cray computers, the double-precision versions DLSQPM, DLSQP1 and DLSQP2 are not available.
Structure:
SUBROUTINE subprograms
User Entry Names: RLSQPM, RLSQP1, RLSQP2,
DLSQPM, DLSQP1, DLSQP2
External References:
RVSET, DVSET, DVSUM, DVMPY,
DSEQN
Usage:
For (type REAL), (type DOUBLE PRECISION),
CALL tLSQPM(N,X,Y,M,A,SD,IFAIL) CALL tLSQP1(N,X,Y,A0,A1,SD,IFAIL) CALL tLSQP2(N,X,Y,A0,A1,A2,SD,IFAIL)
Method:
The normal equations are solved. On computers other than CDC or Cray, double-precision mode arithmetic is used internally for RLSQPM, RLSQP1 and RLSQP2.
Notes:
Meaningful results can usually be obtained only for small values of m (typically ).
References: