source: branches/maven/projects/slim-curve/src/main/c/EcfWrapper.h @ 7387

Revision 7387, 902 bytes checked in by aivar, 9 years ago (diff)

A version of Paul Barber's ECF library with functions used in SLIM Plugin. These have been rewritten to remove NR dependencies. Functions not used and other code that still uses NR all removed.

Line 
1/*
2 * File:   EcfWrapper.h
3 * Author: Aivar Grislis
4 *
5 * Created on September 3, 2010, 5:21 PM
6 */
7
8#ifndef _ECFWRAPPER_H
9#define _ECFWRAPPER_H
10
11#ifdef  __cplusplus
12extern "C" {
13#endif
14
15int RLD_fit(
16        double x_inc,
17        double y[],
18        int fit_start,
19        int fit_end,
20        double instr[],
21        int n_instr,
22        double sig[],
23        double *z,
24        double *a,
25        double *tau,
26        double fitted[],
27        double *chi_square,
28        double chi_square_target
29        );
30
31int LMA_fit(
32        double x_inc,
33        double y[],
34        int fit_start,
35        int fit_end,
36        double instr[],
37        int n_instr,
38        double sig[],
39        double param[],
40        int param_free[],
41        int n_param,
42        double fitted[],
43        double *chi_square,
44        double chi_square_target
45        );
46
47#ifdef  __cplusplus
48}
49#endif
50
51#endif  /* _ECFWRAPPER_H */
52
Note: See TracBrowser for help on using the repository browser.