home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / WINDOWS / MISC / XLMATH10.ZIP / XLMCURVE.H < prev    next >
Text File  |  1992-03-14  |  3KB  |  59 lines

  1. /* **********************************************************
  2.    XLMCURVE.H
  3.    ==========
  4.    This file contains function prototypes for the various
  5.    curve fitting functions. The functions are copyrighted
  6.    by Quinn-Curtis and are available in their Science & 
  7.    Engineering Tools. The modifications to these routines
  8.    are minor and consist primarily of changing pointer types
  9.    to FAR pointers.
  10.    ******************************************************** */
  11.  
  12. #ifndef realtype
  13.    #define realtype double
  14. #endif
  15.  
  16. /* ----------------------------------------------------------
  17.     CURVEFIT.C
  18.    ---------------------------------------------------------- */
  19. BOOL _PolyCurveFit(LPREAL lpIndvar,LPREAL lpDepvar,int numobs,int order,
  20.               LPREAL lpCoef,LPREAL lpYest,LPREAL lpResid,NPREAL see,
  21.           LPREAL lpCoefsig,NPREAL rsq,NPREAL r,NPREAL dferror);
  22. /* ----------------------------------------------------------
  23.     MULREG.C
  24.    ---------------------------------------------------------- */
  25. void  MatTxTiX(LPREAL lpAryin,int numrow,int numcol,LPREAL lpAryout);
  26. void MatYTiX(LPREAL lpAryy,LPREAL lpAryx,int numrow,
  27.             int numcol,LPREAL lpAryout);
  28. void ResAnalysis(LPREAL lpRegmat, LPREAL lpYmat,LPREAL regcoef,
  29.          LPREAL aryinv, int numrow,int numcol,LPREAL yest,
  30.          LPREAL resid, NPREAL see,LPREAL coefsig,
  31.          NPREAL rsq,NPREAL r);
  32. BOOL MultipleReg(LPREAL lpIndvardat,LPREAL lpDepvardat,int numiv,int numobs,
  33.             LPREAL lpRegcoef,LPREAL lpYest,LPREAL lpResid,NPREAL see,
  34.             LPREAL lpCoefsig,NPREAL rsq,NPREAL r,char *regerror);
  35. /* ----------------------------------------------------------
  36.     GJ.C
  37.    ---------------------------------------------------------- */
  38. void gjswap(LPREAL s1,LPREAL s2);
  39. BOOL GaussJordan( LPREAL coefary,LPREAL constary,
  40.           int numcol,LPREAL solcoef, LPREAL invary,
  41.                   NPREAL det);
  42. /* ----------------------------------------------------------
  43.     Cubic Splines
  44.    ---------------------------------------------------------- */
  45.  
  46. void tridiag(LPREAL mat,int n,LPREAL vec);
  47. BOOL _CubicSplines(LPREAL x,LPREAL y,int n,LPREAL s);
  48. realtype PolyCalc(realtype XIn,LPREAL CoefVector,int order);
  49. BOOL _CalcSpline(LPREAL xv,LPREAL coef,int n,LPREAL lpX,LPREAL y);
  50. /* ----------------------------------------------------------
  51.     SMOOTH.C
  52.    ---------------------------------------------------------- */
  53.  
  54. void _DataSmoothSg(LPREAL dataset,int numdat,int smoothnum,
  55.                  int derivnum, LPREAL smoothdata);
  56. void _DataSmoothWeights(LPREAL dataset,int numdat,int smoothnum,
  57.                        LPREAL weights,LPREAL lpdivisor,
  58.                        LPREAL smoothdata);
  59. double CalcOverflow(realtype num);