GIRAFFE Pipeline Reference Manual
Overview
Modules
Structures
Source Files
GIRAFFE
Credits
giraffe
gimodels.h
1
/*
2
* This file is part of the GIRAFFE Pipeline
3
* Copyright (C) 2002-2019 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, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
20
#ifndef GIMODELS_H
21
#define GIMODELS_H
22
23
#include <cxtypes.h>
24
25
#include <cpl_macros.h>
26
#include <cpl_propertylist.h>
27
28
#include "gimodel.h"
29
#include "gilevenberg.h"
30
31
32
#ifdef __cplusplus
33
extern
"C"
{
34
#endif
35
36
37
struct
GiModel {
38
39
cxchar* name;
40
GiModelType type;
41
42
GiFitFunc model;
43
44
struct
{
45
cxint count;
46
cpl_propertylist* names;
47
cpl_matrix* values;
48
} arguments;
49
50
struct
{
51
cxint count;
52
cpl_propertylist* names;
53
cpl_matrix* values;
54
cpl_matrix* limits;
55
cxint* flags;
56
} parameters;
57
58
struct
{
59
GiFitSetup setup;
60
61
cxint iterations;
62
cxint nfree;
63
cxint df;
64
65
cxdouble chisq;
66
cxdouble rsquare;
67
68
cpl_matrix* covariance;
69
} fit;
70
71
};
72
73
74
typedef
struct
GiModelData GiModelData;
75
76
struct
GiModelData {
77
78
const
cxchar*
const
name;
79
80
GiModelType type;
81
82
void (*ctor)(GiModel* ,
const
GiModelData* );
83
void (*dtor)(GiModel* );
84
GiFitFunc eval;
85
86
};
87
88
89
extern
const
GiModelData*
const
giraffe_models;
90
91
92
#ifdef __cplusplus
93
}
94
#endif
95
96
#endif
/* GIMODELS_H */
This file is part of the GIRAFFE Pipeline Reference Manual 2.16.10.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Dec 15 2022 21:18:51 by
doxygen
1.9.1 written by
Dimitri van Heesch
, © 1997-2004