SINFONI Pipeline Reference Manual
2.6.0
sinfoni
sinfo_fit.h
1
/*
2
* This file is part of the ESO SINFONI Pipeline
3
* Copyright (C) 2004,2005 European Southern Observatory
4
*
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 2 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
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, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
18
*/
19
#ifndef SINFO_FIT_H
20
#define SINFO_FIT_H
21
22
#include <cpl.h>
23
double
24
sinfo_amsub(
double
d0[],
25
double
d1[],
26
double
d2[],
27
double
value[],
28
double
range[],
29
double
tol,
30
int
ivorf[],
31
int
ncon,
32
int
nref,
33
double
(*ftbm)(
double
[],
int
ncon));
34
35
void
36
sinfo_fit_amoeba(
double
**p,
37
double
y[],
38
int
ndim,
39
double
ftol,
40
double
(*funk)(
double
[]),
41
int
* nfunk);
42
43
cpl_error_code sinfo_fit_lm(
const
cpl_matrix *x,
44
const
cpl_matrix *sigma_x,
45
const
cpl_vector *y,
46
const
cpl_vector *sigma_y,
47
cpl_vector *a,
48
const
int
ia[],
49
int
(*f)(
const
double
x[],
50
const
double
a[],
51
double
*result),
52
int
(*dfda)(
const
double
x[],
53
const
double
a[],
54
double
result[]),
55
double
*mse,
56
double
*red_chisq,
57
cpl_matrix **covariance);
58
59
double
60
sinfo_ftbm(
const
double
x,
double
cons[]);
61
62
#endif
Generated by
1.8.6