NFFT Logo 3.2.3
kernels.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2002, 2012 Jens Keiner, Stefan Kunis, Daniel Potts
3  *
4  * This program is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU General Public License as published by the Free Software
6  * Foundation; either version 2 of the License, or (at your option) any later
7  * version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc., 51
16  * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  */
18 
19 /* $Id: kernels.h 3775 2012-06-02 16:39:48Z keiner $ */
20 
24 #ifndef KERNELS_H
25 #define KERNELS_H
26 
27 #include "config.h"
28 
29 #ifdef HAVE_COMPLEX_H
30 #include <complex.h>
31 #endif
32 
33 #ifdef __cplusplus
34 extern "C"
35 {
36 #endif /* __cplusplus */
37 
43 double _Complex gaussian(double x, int der, const double *param); /* K(x)=exp(-x^2/c^2) */
44 double _Complex multiquadric(double x, int der, const double *param); /* K(x)=sqrt(x^2+c^2) */
45 double _Complex inverse_multiquadric(double x, int der, const double *param); /* K(x)=1/sqrt(x^2+c^2) */
46 double _Complex logarithm(double x, int der, const double *param); /* K(x)=log |x| */
47 double _Complex thinplate_spline(double x, int der, const double *param); /* K(x) = x^2 log |x| */
48 double _Complex one_over_square(double x, int der, const double *param); /* K(x) = 1/x^2 */
49 double _Complex one_over_modulus(double x, int der, const double *param); /* K(x) = 1/|x| */
50 double _Complex one_over_x(double x, int der, const double *param); /* K(x) = 1/x */
51 double _Complex inverse_multiquadric3(double x, int der, const double *param); /* K(x) = 1/sqrt(x^2+c^2)^3 */
52 double _Complex sinc_kernel(double x, int der, const double *param); /* K(x) = sin(cx)/x */
53 double _Complex cosc(double x, int der, const double *param); /* K(x) = cos(cx)/x */
54 double _Complex kcot(double x, int der, const double *param); /* K(x) = cot(cx) */
55 double _Complex one_over_cube(double x, int der, const double *param); /* K(x) = 1/x^3 */
56 /* \} */
57 
58 #ifdef __cplusplus
59 } /* extern "C" */
60 #endif /* __cplusplus */
61 
62 #endif
63 /* kernels.h */

Generated on Tue Apr 30 2013 by Doxygen 1.8.1