GDAL
gvgcpfit.h
1 #ifndef _GVGCPFIT_H_INCLUDED
2 #define _GVGCPFIT_H_INCLUDED
3 
4 #include "cpl_port.h"
5 #include "cpl_conv.h"
6 #include "cpl_error.h"
7 
8 #define EXTERNAL
9 #define LOCAL static
10 
11 #define SUCCESS 0
12 #define ABORT -1
13 
14 
15 /*------------------------ Start of file CURVEFIT.H -----------------------*/
16 
17 /*
18 ******************************************************************************
19 * *
20 * CURVEFIT.H *
21 * ========= *
22 * *
23 * This file contains the function prototype for CURVEFIT.C. *
24 ******************************************************************************
25 */
26 
27 
28 #ifndef CURVEFIT_H
29 #define CURVEFIT_H
30 
31 /*- Function prototypes in CURVEFIT.C. -*/
32 
33 EXTERNAL int svdfit(float x[], float y[], int ndata,
34  double a[], int ma, double **u, double **v, double w[],
35  double *chisq, void (*funcs)(double, double *, int));
36 
37 EXTERNAL void svbksb(double **u, double w[], double **v, int m,int n,
38  double b[], double x[]);
39 
40 EXTERNAL void svdvar(double **v, int ma, double w[], double **cvm);
41 
42 EXTERNAL int svdcmp(double **a, int m, int n, double *w, double **v);
43 
44 
45 #endif
46 
47 
48 /*-------------------------- End of file CURVEFIT.H -----------------------*/
49 
50 
51 
52 
53 /*----------------------------- FILE polyfit.h ----------------------------*/
54 #ifndef __POLYFIT_H
55 #define __POLYFIT_H
56 
57 EXTERNAL int OneDPolyFit( double *rms_err, double *coeffs_array,
58  int fit_order, int no_samples, double *f_array, double *x_array );
59 
60 EXTERNAL double OneDPolyEval( double *coeff, int order, double x );
61 
62 EXTERNAL int TwoDPolyFit( double *rms_err, double *coeffs_array,
63  int fit_order, int no_samples, double *f_array, double *x_array,
64  double *y_array );
65 
66 EXTERNAL double TwoDPolyEval( double *coeff, int order, double x, double y );
67 
68 EXTERNAL int TwoDPolyGradFit( double *rms_err, double *coeffs_array,
69  int fit_order, int no_samples, double *gradxy_array,
70  double *x_array, double *y_array );
71 
72 EXTERNAL void TwoDPolyGradEval(double *fgradx, double *fgrady,
73  double *coeff, int order, double x, double y);
74 
75 EXTERNAL void GetPolyInX (double *xcoeffs, double *xycoeffs, int order,
76  double y);
77 
78 EXTERNAL void GetPolyInY(double *ycoeffs, double *xycoeffs, int order,
79  double x);
80 
81 EXTERNAL int ThreeDPolyFit( double *rms_err, double *coeffs_array,
82  int fit_order, int no_samples, double *f_array, double *x_array,
83  double *y_array, double *z_array );
84 
85 EXTERNAL double ThreeDPolyEval( double *coeff, int order, double x, double y, double z );
86 
87 
88 
89 #endif /* __POLYFIT_H */
90 
91 
92 /*---------------------- End of FILE polyfit.h ----------------------------*/
93 
94 #endif /* ndef _GVGCPFIT_INCLUDED */
Core portability definitions for CPL.
CPL error handling services.
Various convenience functions for CPL.

Generated for GDAL by doxygen 1.8.11.