source: trunk/projects/slim-curve/src/main/c/EcfWrapper.h @ 7781

Revision 7781, 1.7 KB checked in by paulbarber, 8 years ago (diff)

Added GPL license to all source code.

Line 
1/*
2This file is part of the SLIM-curve package for exponential curve fitting of spectral lifetime data.
3
4Copyright (c) 2010, 2011, Gray Institute University of Oxford & UW-Madison LOCI.
5
6    This program is free software: you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation, either version 3 of the License, or
9    (at your option) any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20/*
21 * File:   EcfWrapper.h
22 * Author: Aivar Grislis
23 *
24 * Created on September 3, 2010, 5:21 PM
25 */
26
27#ifndef _ECFWRAPPER_H
28#define _ECFWRAPPER_H
29
30#ifdef  __cplusplus
31extern "C" {
32#endif
33
34int RLD_fit(
35        double x_inc,
36        double y[],
37        int fit_start,
38        int fit_end,
39        double instr[],
40        int n_instr,
41        double sig[],
42        double *z,
43        double *a,
44        double *tau,
45        double fitted[],
46        double *chi_square,
47        double chi_square_target
48        );
49
50int LMA_fit(
51        double x_inc,
52        double y[],
53        int fit_start,
54        int fit_end,
55        double instr[],
56        int n_instr,
57        double sig[],
58        double param[],
59        int param_free[],
60        int n_param,
61        double fitted[],
62        double *chi_square,
63        double chi_square_target
64        );
65
66#ifdef  __cplusplus
67}
68#endif
69
70#endif  /* _ECFWRAPPER_H */
71
Note: See TracBrowser for help on using the repository browser.