GIRAFFE Pipeline Reference Manual

gichebyshev.h

00001 /* $Id: gichebyshev.h,v 1.6 2007/03/12 12:53:23 rpalsa Exp $
00002  *
00003  * This file is part of the GIRAFFE Pipeline
00004  * Copyright (C) 2002-2006 European Southern Observatory
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019  */
00020 
00021 /*
00022  * $Author: rpalsa $
00023  * $Date: 2007/03/12 12:53:23 $
00024  * $Revision: 1.6 $
00025  * $Name: giraffe-2_8_8 $
00026  */
00027 
00028 #ifndef GICHEBYSHEV_H
00029 #define GICHEBYSHEV_H
00030 
00031 #include <cxtypes.h>
00032 
00033 #include <cpl_macros.h>
00034 #include <cpl_matrix.h>
00035 
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040 
00041 
00042 typedef struct GiChebyshev2D GiChebyshev2D;
00043 
00044 
00045 GiChebyshev2D *giraffe_chebyshev2d_new(cxint xorder, cxint yorder);
00046 GiChebyshev2D *giraffe_chebyshev2d_clone(const GiChebyshev2D *other);
00047 void giraffe_chebyshev2d_delete(GiChebyshev2D *self);
00048 
00049 void giraffe_chebyshev2d_get_order(const GiChebyshev2D *self, cxint *xorder,
00050                                    cxint *yorder);
00051 void giraffe_chebyshev2d_get_range(const GiChebyshev2D *self, cxdouble *ax,
00052                                    cxdouble *bx, cxdouble *ay, cxdouble *by);
00053 
00054 const cpl_matrix *giraffe_chebyshev2d_coeffs(const GiChebyshev2D *self);
00055 
00056 cxint giraffe_chebyshev2d_set(GiChebyshev2D *self, cxdouble ax, cxdouble bx,
00057                               cxdouble ay, cxdouble by, cpl_matrix *coeffs);
00058 cxint giraffe_chebyshev2d_set_coeff(GiChebyshev2D *self, cxint i, cxint j,
00059                                     cxdouble value);
00060 
00061 cxdouble giraffe_chebyshev2d_eval(const GiChebyshev2D *self, cxdouble x,
00062                                   cxdouble y);
00063 
00064 
00065 #ifdef __cplusplus
00066 }
00067 #endif
00068 
00069 #endif /* GICHEBYSHEV_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.8.8.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Fri Mar 4 10:50:26 2011 by doxygen 1.6.3 written by Dimitri van Heesch, © 1997-2004