GDAL
gvgcpfit.h
00001 /* $Id: gvgcpfit.h 35882 2016-10-24 04:10:14Z goatbar $ */
00002 
00003 #ifndef GVGCPFIT_H_INCLUDED
00004 #define GVGCPFIT_H_INCLUDED
00005 
00006 #include "cpl_port.h"
00007 #include "cpl_conv.h"
00008 #include "cpl_error.h"
00009 
00010 #define EXTERNAL
00011 #define LOCAL static
00012 
00013 #define SUCCESS 0
00014 #define ABORT -1
00015 
00016 /*------------------------ Start of file CURVEFIT.H -----------------------*/
00017 
00018 /*
00019 ******************************************************************************
00020 *                                                                            *
00021 *                                 CURVEFIT.H                                 *
00022 *                                 =========                                  *
00023 *                                                                            *
00024 *   This file contains the function prototype for CURVEFIT.C.                *
00025 ******************************************************************************
00026 */
00027 
00028 #ifndef CURVEFIT_H
00029 #define CURVEFIT_H
00030 
00031 /*- Function prototypes in CURVEFIT.C. -*/
00032 
00033 EXTERNAL int svdfit(float x[], float y[], int ndata,
00034             double a[], int ma, double **u, double **v, double w[],
00035             double *chisq, void (*funcs)(double, double *, int));
00036 
00037 EXTERNAL void svbksb(double **u, double w[], double **v, int m,int n,
00038             double b[], double x[]);
00039 
00040 EXTERNAL void svdvar(double **v, int ma, double w[], double **cvm);
00041 
00042 EXTERNAL int svdcmp(double **a, int m, int n, double *w, double **v);
00043 
00044 #endif
00045 
00046 /*-------------------------- End of file CURVEFIT.H -----------------------*/
00047 
00048 /*----------------------------- FILE polyfit.h ----------------------------*/
00049 #ifndef POLYFIT_H
00050 #define POLYFIT_H
00051 
00052 EXTERNAL int OneDPolyFit( double *rms_err, double *coeffs_array,
00053     int fit_order, int no_samples, double *f_array, double *x_array );
00054 
00055 EXTERNAL double OneDPolyEval( double *coeff, int order, double x );
00056 
00057 EXTERNAL int TwoDPolyFit( double *rms_err, double *coeffs_array,
00058     int fit_order, int no_samples, double *f_array, double *x_array,
00059     double *y_array );
00060 
00061 EXTERNAL double TwoDPolyEval( double *coeff, int order, double x, double y );
00062 
00063 EXTERNAL int TwoDPolyGradFit( double *rms_err, double *coeffs_array,
00064     int fit_order, int no_samples, double *gradxy_array,
00065     double *x_array, double *y_array );
00066 
00067 EXTERNAL void TwoDPolyGradEval(double *fgradx, double *fgrady,
00068     double *coeff, int order, double x, double y);
00069 
00070 EXTERNAL void GetPolyInX (double *xcoeffs, double *xycoeffs, int order,
00071     double y);
00072 
00073 EXTERNAL void GetPolyInY(double *ycoeffs, double *xycoeffs, int order,
00074     double x);
00075 
00076 EXTERNAL int ThreeDPolyFit( double *rms_err, double *coeffs_array,
00077     int fit_order, int no_samples, double *f_array, double *x_array,
00078     double *y_array, double *z_array );
00079 
00080 EXTERNAL double ThreeDPolyEval( double *coeff, int order, double x, double y, double z );
00081 
00082 #endif /* POLYFIT_H */
00083 
00084 /*---------------------- End of FILE polyfit.h ----------------------------*/
00085 
00086 #endif /* ndef _GVGCPFIT_INCLUDED */

Generated for GDAL by doxygen 1.7.6.1.