3 #ifndef GVGCPFIT_H_INCLUDED 4 #define GVGCPFIT_H_INCLUDED 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));
37 EXTERNAL
void svbksb(
double **u,
double w[],
double **v,
int m,
int n,
38 double b[],
double x[]);
40 EXTERNAL
void svdvar(
double **v,
int ma,
double w[],
double **cvm);
42 EXTERNAL
int svdcmp(
double **a,
int m,
int n,
double *w,
double **v);
52 EXTERNAL
int OneDPolyFit(
double *rms_err,
double *coeffs_array,
53 int fit_order,
int no_samples,
double *f_array,
double *x_array );
55 EXTERNAL
double OneDPolyEval(
double *coeff,
int order,
double x );
57 EXTERNAL
int TwoDPolyFit(
double *rms_err,
double *coeffs_array,
58 int fit_order,
int no_samples,
double *f_array,
double *x_array,
61 EXTERNAL
double TwoDPolyEval(
double *coeff,
int order,
double x,
double y );
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 );
67 EXTERNAL
void TwoDPolyGradEval(
double *fgradx,
double *fgrady,
68 double *coeff,
int order,
double x,
double y);
70 EXTERNAL
void GetPolyInX (
double *xcoeffs,
double *xycoeffs,
int order,
73 EXTERNAL
void GetPolyInY(
double *ycoeffs,
double *xycoeffs,
int order,
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 );
80 EXTERNAL
double ThreeDPolyEval(
double *coeff,
int order,
double x,
double y,
double z );
Core portability definitions for CPL.
CPL error handling services.
Various convenience functions for CPL.