GIRAFFE Pipeline Reference Manual

gimath.h
1 /* $Id$
2  *
3  * This file is part of the GIRAFFE Pipeline
4  * Copyright (C) 2002-2006 European Southern Observatory
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 2 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, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 /*
22  * $Author$
23  * $Date$
24  * $Revision$
25  * $Name$
26  */
27 
28 #ifndef GIMATH_H
29 #define GIMATH_H
30 
31 #include <cxtypes.h>
32 
33 #include <cpl_macros.h>
34 #include <cpl_matrix.h>
35 
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 
42 cxdouble
43 giraffe_interpolate_linear(cxdouble x, cxdouble x_0, cxdouble y_0,
44  cxdouble x_1, cxdouble y_1);
45 
46 /*
47  * Chebyshev polynomials
48  */
49 
50 cpl_matrix*
51 giraffe_chebyshev_base1d(cxdouble start, cxdouble size, cxint order,
52  cpl_matrix* m_x);
53 
54 cpl_matrix*
55 giraffe_chebyshev_base2d(cxdouble xstart, cxdouble ystart, cxdouble xsize,
56  cxdouble ysize, cxint xorder, cxint yorder,
57  cpl_matrix* m_x, cpl_matrix* m_y);
58 
59 cpl_matrix*
60 giraffe_chebyshev_base2dt(cxdouble xstart, cxdouble ystart, cxdouble xsize,
61  cxdouble ysize, cxint xorder, cxint yorder,
62  cpl_matrix* m_x, cpl_matrix* m_y);
63 
64 cpl_matrix*
65 giraffe_chebyshev_fit1d(cxdouble start, cxdouble size, cpl_matrix* m_c,
66  cpl_matrix* m_x);
67 
68 cpl_matrix*
69 giraffe_chebyshev_fit2d(cxdouble xstart, cxdouble ystart, cxdouble xsize,
70  cxdouble ysize, const cpl_matrix* m_c,
71  const cpl_matrix* m_x, const cpl_matrix* m_y);
72 
73 cxint giraffe_gauss_jordan(cpl_matrix*, cxint, cpl_matrix*, cxint);
74 
75 void giraffe_compute_image_coordinates(cxlong, cxlong, cpl_matrix*,
76  cpl_matrix*);
77 
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif /* GIMATH_H */
84 
85 
86 

This file is part of the GIRAFFE Pipeline Reference Manual 2.14.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Wed Mar 11 2015 13:19:41 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2004