GDAL

- Main Page
- Related Pages
- Classes
- Files
- Download
- Issue Tracker

- File List
- File Members

gvgcpfit.h
1 /* $Id$ */
2
3 #ifndef GVGCPFIT_H_INCLUDED
4 #define GVGCPFIT_H_INCLUDED
5
6 #include "cpl_port.h"
7 #include "cpl_conv.h"
8 #include "cpl_error.h"
9
10 #define EXTERNAL
11 #define LOCAL static
12
13 #define SUCCESS 0
14 #define ABORT -1
15
16 /*------------------------ Start of file CURVEFIT.H -----------------------*/
17
18 /*
19 ******************************************************************************
20 * *
21 * CURVEFIT.H *
22 * ========= *
23 * *
24 * This file contains the function prototype for CURVEFIT.C. *
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 #endif
45
46 /*-------------------------- End of file CURVEFIT.H -----------------------*/
47
48 /*----------------------------- FILE polyfit.h ----------------------------*/
49 #ifndef POLYFIT_H
50 #define POLYFIT_H
51
52 EXTERNAL int OneDPolyFit( double *rms_err, double *coeffs_array,
53 int fit_order, int no_samples, double *f_array, double *x_array );
54
55 EXTERNAL double OneDPolyEval( double *coeff, int order, double x );
56
57 EXTERNAL int TwoDPolyFit( double *rms_err, double *coeffs_array,
58 int fit_order, int no_samples, double *f_array, double *x_array,
59 double *y_array );
60
61 EXTERNAL double TwoDPolyEval( double *coeff, int order, double x, double y );
62
63 EXTERNAL int TwoDPolyGradFit( double *rms_err, double *coeffs_array,
64 int fit_order, int no_samples, double *gradxy_array,
65 double *x_array, double *y_array );
66
67 EXTERNAL void TwoDPolyGradEval(double *fgradx, double *fgrady,
68 double *coeff, int order, double x, double y);
69
70 EXTERNAL void GetPolyInX (double *xcoeffs, double *xycoeffs, int order,
71 double y);
72
73 EXTERNAL void GetPolyInY(double *ycoeffs, double *xycoeffs, int order,
74 double x);
75
76 EXTERNAL int ThreeDPolyFit( double *rms_err, double *coeffs_array,
77 int fit_order, int no_samples, double *f_array, double *x_array,
78 double *y_array, double *z_array );
79
80 EXTERNAL double ThreeDPolyEval( double *coeff, int order, double x, double y, double z );
81
82 #endif /* POLYFIT_H */
83
84 /*---------------------- End of FILE polyfit.h ----------------------------*/
85
86 #endif /* ndef _GVGCPFIT_INCLUDED */
cpl_port.h
Core portability definitions for CPL.
cpl_error.h
CPL error handling services.
cpl_conv.h
Various convenience functions for CPL.

Generated for GDAL by 1.8.8.