3 * Copyright (C) 2000, 2007 Brian Gough
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or (at
8 * your option) any later version.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 #include <gsl/gsl_math.h>
29 # define __BEGIN_DECLS extern "C" {
30 # define __END_DECLS }
32 # define __BEGIN_DECLS /* empty */
33 # define __END_DECLS /* empty */
38 int gsl_fit_linear (const double * x, const size_t xstride,
39 const double * y, const size_t ystride,
41 double * c0, double * c1,
42 double * cov00, double * cov01, double * cov11,
46 int gsl_fit_wlinear (const double * x, const size_t xstride,
47 const double * w, const size_t wstride,
48 const double * y, const size_t ystride,
50 double * c0, double * c1,
51 double * cov00, double * cov01, double * cov11,
55 gsl_fit_linear_est (const double x,
56 const double c0, const double c1,
57 const double cov00, const double cov01, const double cov11,
58 double *y, double *y_err);
61 int gsl_fit_mul (const double * x, const size_t xstride,
62 const double * y, const size_t ystride,
68 int gsl_fit_wmul (const double * x, const size_t xstride,
69 const double * w, const size_t wstride,
70 const double * y, const size_t ystride,
78 gsl_fit_mul_est (const double x,
81 double *y, double *y_err);
85 #endif /* __GSL_FIT_H__ */