fors_polynomial.h

00001 /* $Id: fors_polynomial.h,v 1.4 2010/09/14 07:49:30 cizzo Exp $
00002  *
00003  * This file is part of the FORS Library
00004  * Copyright (C) 2002-2010 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: cizzo $
00023  * $Date: 2010/09/14 07:49:30 $
00024  * $Revision: 1.4 $
00025  * $Name: fors-4_8_6 $
00026  */
00027 
00028 #ifndef FORS_POLYNOMIAL_H
00029 #define FORS_POLYNOMIAL_H
00030 
00031 #include <cpl.h>
00032 
00033 CPL_BEGIN_DECLS
00034 
00035 int
00036 fors_polynomial_count_coeff(                const cpl_polynomial    *p);
00037 
00038 int
00039 fors_polynomial_powers_find_first_coeff(    const cpl_polynomial    *p,
00040                                             int                     *powers);
00041 
00042 int
00043 fors_polynomial_powers_find_next_coeff(     const cpl_polynomial    *p,
00044                                             int                     *powers);
00045 
00046 cpl_error_code
00047 fors_polynomial_set_existing_coeff(         cpl_polynomial          *p,
00048                                             const double            *coeffs,
00049                                             int                     n_coeffs);
00050 
00051 cpl_polynomial*
00052 fors_polynomial_create_variance_polynomial( const cpl_polynomial    *p_def,
00053                                             const cpl_matrix        *cov_coeff);
00054 
00055 cpl_error_code
00056 fors_polynomial_dump(                       const cpl_polynomial    *p,
00057                                             const char              *name,
00058                                             cpl_msg_severity        level,
00059                                             const cpl_polynomial    *p_def);
00060 
00061 char*
00062 fors_polynomial_sprint_coeff(               const cpl_polynomial    *p,
00063                                             int                     *powers,
00064                                             const char              *prefix);
00065 
00066 CPL_END_DECLS
00067 
00068 #endif  /* FORS_POLYNOMIAL_H */

Generated on Fri Mar 4 09:46:00 2011 for FORS Pipeline Reference Manual by  doxygen 1.4.7