FORS Pipeline Reference Manual 4.9.20
|
00001 /* $Id: fors_polynomial.h,v 1.5 2012/01/27 18:51:59 cgarcia 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: cgarcia $ 00023 * $Date: 2012/01/27 18:51:59 $ 00024 * $Revision: 1.5 $ 00025 * $Name: fors-4_9_20 $ 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 cpl_size *powers); 00041 00042 int 00043 fors_polynomial_powers_find_next_coeff( const cpl_polynomial *p, 00044 cpl_size *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 cpl_size *powers, 00064 const char *prefix); 00065 00066 CPL_END_DECLS 00067 00068 #endif /* FORS_POLYNOMIAL_H */